News for hackers. Stuff that matters.
Re:Advent of Nim by tcoff91 on Thursday November 29, 2018 @11:05AM (#18561175)
The big issue for me is it interferes with code search tools. I like being able to use ripgrep to find all uses of an identifier. That becomes hard with style insensitivity.
Re:Advent of Nim by PMunch on Thursday November 29, 2018 @11:38AM (#18561479)
That is also a valid concern, with nimsuggest (and soon nimlsp) you will be able to easily find every instance in your editor (as well as rename them). For searching through files however nimgrep is probably your best bet, but that might break up your workflow. In my experience this hasn't been that much of an issue. Typically you write all your identifiers in the same style always, so most of the time you'll find what you need with just a simple grep.
Re:Advent of Nim by beagle3 on Thursday November 29, 2018 @11:20AM (#18561315)
well, yes, that's why nimgrep exists.

grep -i solves the case issue, and grep/ripgrep probably _should_ have a feature to ignore _ ; in which case you will be able to use them - but until then, nimgrep will do that work.

Re:Advent of Nim by tcoff91 on Thursday November 29, 2018 @06:04PM (#18565007)
It seems crazy to me that people are so annoyed that their libraries have different style that we have to have additional tooling to make code search simple for the end-user.
Re:Advent of Nim by dom96 on Thursday November 29, 2018 @07:46PM (#18565635)
You don't _need_ additional tooling. You can get by with just searching as normal, it's not as if people's code bases are filled with random conventions or random case variations...
Re:Advent of Nim by tcoff91 on Friday November 30, 2018 @01:07PM (#18571039)
style insensitivity WILL lead to typos that don't get caught. Someone will change the casing somewhere. Therefore you must always search with style insensitivity in mind.
Re:Advent of Nim by nimmer on Friday November 30, 2018 @02:15PM (#18571749)
Most people use completion anyways and it prevents this problem. Also, you can lint the code.
Re:Advent of Nim by beagle3 on Friday November 30, 2018 @09:36AM (#18569362)
Styles are religions, including - in some organizations - the threat of excommunication if you don’t practice the one style.

I don’t know how atheistic style looks, but Nim is style agnostic - everyone can practice their religion and they all get along. C, Python, and the real world - not so much.