4 ms·
Go enforces a style because all code, written across different teams and organisations, should look the same so anybody can pick up anybody else’s code and read
by tqkxzugoaupvwqr 9y ago
Go enforces a style because all code, written across different teams and organisations, should look the same so anybody can pick up anybody else’s code and read it with ease. There are no differing styles in different libraries. It’s very harmonic.
What I can’t stand in other languages is the Laisser-faire attitude regarding styles. Some people put whitespace here, some there, some put the curly brace here, some there. How about some consistency across all codedbases?
- vidarh 9y agoI'm not willing to put up with harmony at the cost of the code I have to spend most of my time reading being formatted in ways I don't find optimally readable. Making people who care about formatting to the extent I do refuse to use the language is the cost of tools that enforce those kind of rules. That's of course their choice, just as it is mine to stay clear of tools (and languages) I don't consider worth my time.