News for hackers. Stuff that matters.
Re:Nimony: A New Compiler for Nim by flykespice on Tuesday November 17, 2026 @04:44PM (#50538648)
I have been eyeing nim for a while though I more used to curly-braced language families.

The first thing I evaluate in a language is how it looks like in production code, and the samples in github strikes me odd -- like most of the code identation is 2-space and no line break between variable declaration and ifs/else (everything is lumped together).

Just check https://github.com/WyattBlue/auto-editor/blob/master/src/wav... to have an idea of what I'm talking about. Is that how normal nim code supposed to look like? (following its best practices)

Re:Nimony: A New Compiler for Nim by matthiaswh on Wednesday November 18, 2026 @10:00AM (#50547116)
2-spaces is the norm. The line break style varies a little more, but your example doesn't look out of place to me as someone who uses nim a lot for personal projects and Python for my day job.

Here's an example in a popular Python library that feels stylistically similar to the one you gave: https://github.com/pallets/flask/blob/main/src/flask/app.py#...