4 ms·
Trying to get teams to agree on the code style is the hard part when using such tools. `gofmt` somewhat avoids that by defining one true way and only giving min
by spiralpolitik 13y ago
Trying to get teams to agree on the code style is the hard part when using such tools. `gofmt` somewhat avoids that by defining one true way and only giving minor customization options.
- thrownaway2424 13y agoclang-format has the same property. You just have to tell off a bunch of neckbeards and/or fire them if they can't agree to its formatting rules. Having cast-in-stone formatting rules makes code review easier and shorter and avoids lots of arguments. For ultra-dangerous languages like C++, automatic formatting is indispensable.