about shadowing #17471
rraammiinn
started this conversation in
General
about shadowing
#17471
Replies: 1 comment
-
No, it doesn't conflict with modules, as things from modules are prefixed by the module name. Shadowing leads to all sorts of subtle bugs, where you wind up modifying something different from what you thought you were modifying. Code is much safer when shadowing isn't allowed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
doesn't elimination of shadowing cause any problem ?
if someone use a library doesn't program variables make conflict with variables in that library ?
doesn't it make choosing name for variables harder ?
Beta Was this translation helpful? Give feedback.
All reactions