Re:Nim Programming Language 0.11.0 released
by dragonwriter on Thursday April 30, 2015 @05:47PM
(#9467871)
> Suppose you have MyVariable and my_variable in your code. Which is worse: them being the same variable or different variables?
Having them be the same, by far.
Having names with certain similarity be prohibited in the same scope is a bit excessively controlling but sensible. Allowing them but treating them as equivalent is just plain bad. If I named them differently then either: (1) I made a mistake, or (2) I intended them to be different.
Having them be the same, by far.
Having names with certain similarity be prohibited in the same scope is a bit excessively controlling but sensible. Allowing them but treating them as equivalent is just plain bad. If I named them differently then either: (1) I made a mistake, or (2) I intended them to be different.