News for hackers. Stuff that matters.
Re:Nim Version 1.6.6 Released by christophilus on Thursday May 05, 2022 @07:42AM (#31272086)
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.
Re:Nim Version 1.6.6 Released by PMunch on Thursday May 05, 2022 @08:48AM (#31272655)
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.
Re:Nim Version 1.6.6 Released by sausage_dog on Thursday May 05, 2022 @08:51AM (#31272688)
Nim has a tool called nimpretty similar to gofmt
Re:Nim Version 1.6.6 Released by xigoi on Thursday May 05, 2022 @10:44AM (#31274020)
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.
Re:Nim Version 1.6.6 Released by xigoi on Thursday May 05, 2022 @10:43AM (#31274002)
gofmt doesn't seem to ensure consistency in naming styles.