Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
A C++ developer looks at Go (murrayc.com)
1 point by synergy20 on Aug 18, 2022 | hide | past | favorite | 1 comment


A facile comparison. Slightly better than "Go doesn't have templates, so I don't like it", but not much. It's also 5 years old.

This article considers each difference (from plain C) in isolation. It does not consider Go as a system. For example, it lists Go's variable declaration as a mere difference. Considering "var i uint64" in isolation keeps the reviewer from nothing that syntax allows easier developer deciphering of the type, and the syntax allows faster compilation - no weird lexer -parser feedback is required, and as I understand it, lets the parser use a faster algorithm. This encourages better Go tooling as well. Easier parsing leads to more implementations, and more tools like gopls, and the multitude of Go linters.

Just listing "differences" with a little isolated commentary utterly misses the point




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: