2 ms·
Am I understanding correctly that: gofmt(gofumpt(code)) == gofumpt(code)? If so, I don't get the negativity in these comments centered around diverging from go
by parhamn 4y ago
Am I understanding correctly that: gofmt(gofumpt(code)) == gofumpt(code)?
If so, I don't get the negativity in these comments centered around diverging from gofmt. A developer could make any of the decisions that gofumpt made.
- mseepgood 4y agoYes, that's how it works.
- alphazard 4y agoIf that's the case, then it's even more "gofmt" than "gofmt". The important thing about "gofmt" is that it's the only canonical way to format an AST, so anything that fights with gofmt would undermine that and never get traction in the Go ecosystem. Operating in the space where gofmt hasn't completely made up it's mind is a great way to experiment with potential improvements.