4 ms·
Arguably opinionated formatters like prettier and black are a response to gofmt.
by joshuamorton 6y ago
Arguably opinionated formatters like prettier and black are a response to gofmt.
- ses1984 6y agoDefinitely but what about the impact of go's approach to network concurrency?
- shadowgovt 6y agoBenefits of this for large system projects cannot be understated. The notion that there's a many-to-one mapping between allowed representations of the source code and a canonical representation is very smart because it enables bidirectional preferences; not only can the main source make assumptions about code format independent of individual user preferences, but individual users can have preferences independent of the main source; code that is in a canonical format is easier to apply custom formatting to. In addition, a canonical format makes it slightly easier to do plaintext search indexing, so you can get some of the benefits of having the code parsed into a full AST without needing to do that parsing.