News for hackers. Stuff that matters.
Re:Why I Use Nim instead of Python for Data Processing by IshKebab on Saturday September 25, 2021 @05:46AM (#28651828)
> It’s intent is to allow a given codebase to maintain a consistent style (eg camel vs snake) even when making use of upstream libraries that use different styles.

This doesn't make sense. For an entirely new language you can just have the entire ecosystem use the same style, e.g. like Rust does. Or even Python!

Re:Why I Use Nim instead of Python for Data Processing by hexo on Saturday September 25, 2021 @07:51AM (#28652387)
It actually makes a lot of sense. I personally don't want to touch .Net langs because of their PascalCase and camelCase coding style which I find very unfortunate arbitrary decision. And well, didn't really want to get into Nim because of camelCase but since I've learned about this feature I'm reconsidering again.
Re:Why I Use Nim instead of Python for Data Processing by maleldil on Saturday September 25, 2021 @10:45AM (#28653578)
Do you really dislike camelCase that much to avoid an _entire_ ecosystem because of it?

I prefer snake_case too, but avoiding a language because of a minor convention like that seems weird.

Re:Why I Use Nim instead of Python for Data Processing by hexo on Saturday September 25, 2021 @01:17PM (#28654690)
Only language where I can stand it is Haskell. camelCase is relatively ok, but PascalCase for non-types (i.e. function names) is a big no-no :)
Re:Why I Use Nim instead of Python for Data Processing by gilrain on Saturday September 25, 2021 @11:06AM (#28653721)
When there are so many excellent languages to choose among, a trivial distinction can almost be a relief.
Re:Why I Use Nim instead of Python for Data Processing by stavros on Saturday September 25, 2021 @06:18AM (#28651951)
I'd agree, if you want a consistent style, ship a formatter with your package manager, like Rust does with `cargo fmt`. If it's there by default, it'll quickly be a standard.
Re:Why I Use Nim instead of Python for Data Processing by aEverr on Saturday September 25, 2021 @08:41AM (#28652708)
there are many packages and maintainers of such who just dont give a damn about the formatter or the style, some people just *want what they want*
Re:Why I Use Nim instead of Python for Data Processing by stavros on Saturday September 25, 2021 @08:45AM (#28652719)
Sure, but there's a standard formatter, they become a small minority.
Re:Why I Use Nim instead of Python for Data Processing by aEverr on Saturday September 25, 2021 @08:53AM (#28652780)
and with style insensitivity they become a non-issue?
Re:Why I Use Nim instead of Python for Data Processing by stavros on Saturday September 25, 2021 @09:01AM (#28652830)
The compiler might not be sensitive to style, but *I* am.
Re:Why I Use Nim instead of Python for Data Processing by atom_arranger on Saturday September 25, 2021 @10:42AM (#28653551)
I guess the best thing would be having a formatter that can switch the style for you locally. I don’t think Nim has this currently, would be neat if they did.
Re:Why I Use Nim instead of Python for Data Processing by stavros on Saturday September 25, 2021 @09:05PM (#28657501)
I don't think most people care about a specific style, as long as it's consistent. That's why I love Black, we all disagree with it equally, but each for different reasons.