3 ms·
It’s probably my biggest gripe with nim. I hope they drop it and provide a tool like gofmt to get everyone’s code into the same style.
by christophilus 5y ago
It’s probably my biggest gripe with nim. I hope they drop it and provide a tool like gofmt to get everyone’s code into the same style.
- PMunch 5y agoWhy though? With this feature you're able to import a library in a style you don't like and still be able to use it in whichever style you prefer.
- sausage_dog 5y agoNim has a tool called nimpretty similar to gofmt
- xigoi 5y agoAs a frequent Nim user, I've tried it a few times and it doesn't seem to do much, other than reflow lines in not very logical places. I'd prefer an uncompromising formatter like Black/Prettier/StyLua.
- xigoi 5y agogofmt doesn't seem to ensure consistency in naming styles.