top | item 23934462

(no title)

opqpo | 5 years ago

Everything in Golang seems pretty complicated and nonintuitive compared to any other modern language. But "it's all well thought out"!

discuss

order

jimktrains2|5 years ago

Every nil panic and manual type assertion holds a potentially very nice language back. They just seem like relics we should abandon.

opqpo|5 years ago

Accessing nil pointers is well thought out. Not enforcing error checking is well thought out. Reflection and code generators instead of generics and traits is well thought out. Lack of conditional compilation is well thought out. No compilation with unused variables instead of warnings is well thought out. Doing your own sort, map, all essential array operations from scratch everytime is well thought out. Spamming err != nil instead of some operator like `?` is well thought out. iota instead of type-safe Enums is well thought out. No file-scope variables is well thought out. go mod is well thought out compared to npm and cargo.