top | item 40701562

(no title)

ravishi | 1 year ago

The thing about configurable vs non-configurable in this case is that when its configurable then people will spend time debating how exactly they should configure it.

discuss

order

autarch|1 year ago

Yes, that's why I love gofmt. There's nothing to debate!

jrockway|1 year ago

Helpfully, you can debate between "gofmt", "gofmt -s" and "gofumpt".

I actually like how gofumpt formats stuff but ... nobody else on the team would have it, so it would make things worse.

josephg|1 year ago

I hate formatters like this with a passion. I realised when I tried it that there’s hundreds of tiny editorial choices I make throughout my source files. For example, I use different numbers of new lines between functions in a file to indicate similarity or to group functions together. Sometimes I’ll put a simple function on one line - like lerp or vecadd and then make a block of similar functions in my code. Stuff like that.

By removing the maker’s marks, these tools make my code less readable. While, in my opinion, adding practically no value. I’m more than happy for every line of code to have consistent indentation (of course, but it did already). I also don't have a problem with silly but arbitrary formatting choices - like sorting my import lines. But these tools seem to drive so far for consistency that it costs readability.

That’s a nope for me. No debate.