Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
christophilus
· 4y ago · 0 comments
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.
Comments
[–]
PMunch
4y ago
Why 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
4y ago
Nim has a tool called nimpretty similar to gofmt
[–]
xigoi
4y ago
As 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
4y ago
gofmt doesn't seem to ensure consistency in naming styles.