3 ms·
I'm not working on rustfmt but my understanding is that its output is going to be configurable. Every language carries with it a culture. The culture of Go is
by tatterdemalion 11y ago
I'm not working on rustfmt but my understanding is that its output is going to be configurable.
Every language carries with it a culture. The culture of Go is one which allows for gofmt to define one true style and refuse to deviate, just as it allows the language designers to refrain from adding generics.
The culture of Rust is not like that, for several reasons. For one, the Rust community loves a good bikeshed. For two, the syntax of Rust is more complicated than Go, and includes situations (match statements & where clauses come to mind) in which people are just going to want to different things.
I know the advantages of one true style - everyone's heard the arguments - and there's a sane, median default as the official style guide, which will be rustfmt's default output. That seems like a good compromise.