|
|
|
|
|
by throwawaylala1
1466 days ago
|
|
> The best way would be exporting docs from your codebase, and have all documentation related artifacts expressed alongside the code I LOVE Golang's approach to this [1]: - Documentation generation from code is built in to the language toolkit - There is a standard for writing the comments so all of them look the same across every project - It even supports code examples which are visible as a REPL in the generated docs When people ask "what's so great about Go?". It's stuff like that which is hard to succinctly describe but makes a huge difference in overall quality of Go code in the wild. [1]: https://go.dev/doc/comment |
|
Many of the Go features are only a win when the competition is C.