4 ms·
In addition to being instructions for the compiler, source is also a text designed to be read. Specifying and universally enforcing too rigid a rule-set is a ba
by bradleyjg 13y ago
In addition to being instructions for the compiler, source is also a text designed to be read. Specifying and universally enforcing too rigid a rule-set is a bad idea. Good authors sometimes need to break rules in order to make a text better.
Imagine if novels were put through Microsoft Word spelling and grammar check just prior to publication and automatically had all the changes accepted.
The python style guide gets this right, quoting Emerson's famous maxim that "A foolish consistency is the hobgoblin of little minds."
- thezilch 13y agoCan you say where `go fmt` gets it wrong -- give an example. Or where a consistent formatting has gone wrong, in any language? I prefer 2 space python, but I don't have a better reason than my team, as a majority, prefer condenser line lengths, but it can be a problem having to gear up to work with a lib that follows PEP8 to the t.
- bradleyjg 13y agoHow would the c equivalent of fmt layout duff's device, and would it be clearer or less clear than Tom Duff's original formatting (http://www.lysator.liu.se/c/duffs-device.html http://www.lysator.liu.se/c/duffs-device.html)?