Skip to content

Comment on Rust vs Go: A Hands-On Comparisonparent

Comments

This has been my primary objection with Go, as well. I wonder if it's just a lack of practice and that I'd eventually git gud, but I find it so hard to flow through code to get a general idea of what's going on. It's basically impossible to use code "paragraphs" to separate logical groupings of functionality because of the `if err != nil` blocks, and leads to a very choppy reading experience. With any non-trivial logic, I've found Go to be detrimental to my understanding of what's going on.

This seems strange for me, though everyone jumps on this. Most Go projects will use something like:

Handle(err)

which may take a line, but isn't the 3 lines everyone refers to, and often has a lot of extra logic.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.