4 ms·
All the world is not golang. Go is actually one of the few exceptions in the world due to having had "go fix" baked into the compiler/ecosystem from the start.
by lomnakkus 8y ago
All the world is not golang.
Go is actually one of the few exceptions in the world due to having had "go fix" baked into the compiler/ecosystem from the start. That makes a huge difference.
It's also quite a simple language and is pretty easy to auto-format reasonably. Few other languages are that easy to auto-format or have that kind of culture where auto-formatting is accepted as a matter of course.
- skybrian 8y agoNit: you probably mean "go fmt". "go fix" is a different tool. (Though "go fix" does also run the formatter.)
- conradev 8y agoRust is working on this: $ rustup component add rustfmt-preview $ cargo fmt
- steveklabnik 8y ago(And rustfix for the “go fix” equivalent.)
- hota_mazi 8y agoGo is actually extremely hard to format automatically: http://journal.stuffwithstuff.com/2015/09/08/the-hardest-program-ive-ever-written/ http://journal.stuffwithstuff.com/2015/09/08/the-hardest-pro...
- self 8y agoThat article is about Dart, not Go.
- andrewflnr 8y agoFurthermore, the difficulties it mentions are pretty much universal across languages.