by flykespice · 2w ago · 0 comments
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 other groups of statement (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)
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#...
> 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#...
Tbh, the example code you gave me is much more tidied up with clear separation between logical groups of statement and some comments sprawled around to guide on the control flow.
Personally I tend to abuse UFCS, but I use the same style (maybe more breaks).