Re:Nim: Scripting Ease in a Compiled Language
by kungtotte on Tuesday October 29, 2019 @11:25PM
(#21394437)
Nim is actually case sensitive on the first character only, so your list of identifiers are not all equivalent. Just thought I'd point that out for correctness sake.
[ Parent
| on HN ]
Re:Nim: Scripting Ease in a Compiled Language
by Stratoscope on Tuesday October 29, 2019 @11:31PM
(#21394453)
Oh, thank you for the correction, and sorry for the misinformation!
In any case (pun intended?) it's the underscore insensitivity that makes it difficult to use standard search tools.
Re:Nim: Scripting Ease in a Compiled Language
by PMunch on Wednesday October 30, 2019 @07:36AM
(#21396532)
Again just for correctness your last identifier isn't legal in Nim. You aren't allowed to start an identifier with an underscore, and you can't have two underscores together.
Re:Nim: Scripting Ease in a Compiled Language
by atilaneves on Wednesday October 30, 2019 @09:32AM
(#21397476)
> it's the underscore insensitivity that makes it difficult to use standard search tools.
I personally don't like the feature, but what do you find difficult about using /my_?[vV]ariable/ to search for any of myvariable, my_variable or myVariable?