News for hackers. Stuff that matters.
Re:Nim 1.6 by akovaski on Tuesday October 19, 2021 @10:38AM (#28918562)
I started looking at Nim a few months ago, but I didn't like the feature where it ignores underscores and capitalization. It seems to me that this would make grepping harder on larger projects.

I suppose a linter or style-guidelines-and-not-making-mistakes invalidate this issue. For anyone that has used Nim, has this been a problem in practice?

Re:Nim 1.6 by mst on Tuesday October 19, 2021 @10:59AM (#28918780)
Within a specific project, you pick an approach and stick to it, just like you should do for any given convention within a project.

The idea is to make it easier for projects using different conventions to be built on top of each other without making things harder to read - and in practice it actually works really well at that.

On the upside, people freaking out over the style insensitivity makes for a nice change from people freaking out over nim caring about whitespace, so at least we get some variety in our aesthetic worrying from people who've not had time to try the language yet :D

Re:Nim 1.6 by akovaski on Tuesday October 19, 2021 @12:26PM (#28919994)
Ha, I wouldn't have thought to criticize the spacing, but I did see one person complain as I explored old Nim discussions. Nim being strict on tabs is something I see as a good feature for the same reason the style flexibility made me instinctively flinch back. I've experienced mixed tabs and spaces in Python code and I do not like it; the flexibility leads to inconsistency.
Re:Nim 1.6 by mst on Tuesday October 19, 2021 @01:23PM (#28920762)
Tabs vs. spaces hides though.

Inconsistent naming is visible in diffs in any language, style flexibility or not :)

Re:Nim 1.6 by haxscramper on Tuesday October 19, 2021 @10:52AM (#28918709)
No, never. Actually the most problem I've ever had with this feature is seemingly unending discussions that come up in almost every single HN discussion ever, like https://news.ycombinator.com/item?id=28651040

> would make grepping harder on larger projects

There is a built-in tool `nimgrep`, but honestly I never even need for that - `rg` worked perfectly fine each time I had to do something like that.

Re:Nim 1.6 by moigagoo on Tuesday October 19, 2021 @11:24AM (#28919122)
I've been using Nim for hobby programming for a few years now. I'm maintaining the Norm package, it's an ORM for SQLite and Postgres. Not a huge project but not a hello world either.

Style insensitivity has never caused a single problem for me. Honestly, this is the most unimportant language feature, I don't get why it causes such fuss every time Nim is mentioned.

Re:Nim 1.6 by iffycan on Tuesday October 19, 2021 @01:14PM (#28920620)
It has never caused a problem for me. I didn't even know it was a "feature" until I'd used Nim for a year. In theory it seems like a terrible idea. In practice, it has never caused any problems.