Re:Nim: Scripting Ease in a Compiled Language
by 0xfffafaCrash on Wednesday October 30, 2019 @01:00AM
(#21394802)
Disallowing these case/underscore variants from referring to differing values could be quite ok -- even a plus-- if (but only if) an additional rule is added to disallow any variations of the declaration-time casing for a variable within the same scope to prevent the need for bespoke grepping tools and discourage arbitrary variations. If that restriction was added one could argue that this improves code readability (& "listenability") by have fewer variable names available in the same scope which would sound the same but aren't.
[ Parent
| on HN ]