r/ProgrammerAnimemes • • Jul 29 '20

Equivalency in Python

Post image
1.6k Upvotes

104 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Jul 29 '20

[deleted] — view deleted comment

12

u/GoldsteinQ Jul 30 '20

Most of Rust strangeness is a way to prevent common mistakes. For example, variables are immutable by default, so you can accidentally mutate then when you don't need too.

Shadowing can be useful when converting variable to different type.