3 ms·
>Only works if people use tabs for indentation and spaces for alignment which I've never seen anybody maintain successfully on a big project. It shouldn't be l
by coldtea 9y ago
>Only works if people use tabs for indentation and spaces for alignment which I've never seen anybody maintain successfully on a big project.
It shouldn't be left to the devs.
All languages should have something like Go's gofmt -- or even better, mandatory whitespacing/tabs rules. If you don't respect them (which the auto format tool could help you automatically do), the program shouldn't compile.
- warmwaffles 9y ago> All languages should have something like Go's gofmt -- or even better, mandatory whitespacing/tabs rules. If you don't respect them (which the auto format tool could help you automatically do), the program shouldn't compile. It exists `clang-format`
- coldtea 9y agoFormatters / indent do exist. But they're not widely accepted by most languages devs (like gofmt is by Go programmers), nor is their use enforced by the compiler (even in Go).