Hacker News new | past | comments | ask | show | jobs | submit login

I use it at work for an important CLI tool that backs a number of our systems. My style is almost exactly like Python. Four-space tabs, snake_case, my own rules for indenting parameters and keywords. You do not need to use the official Nim style, you can absolutely write it like Python, Ada, however you like.



The compiler seems to enforce spaces? But I did see some code that replaces tabs with spaces, but it feels dirty having that in every single source file.


Maybe I was unclear, I guess I should say my indents are 4 spaces. Never tried it with actual tabs so I can't say.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: