3 ms·
It's not just golang, it's your tooling assuming the syntax of the language you use allows it. I do "reformat on a hot key" in both Rust and Typescript, and use
by dorfsmay 4y ago
It's not just golang, it's your tooling assuming the syntax of the language you use allows it. I do "reformat on a hot key" in both Rust and Typescript, and use it constantly, way before I save, it helps me review and confirm my logic makes sense.
The other advantage is that it standardizes formatting for a given repo making diffs more relevant.
Ironically, I believe Python PEP 8 is what started and normalised the idea of taking formating decisions away from developers.