logoalt Hacker News

Pxtllast Tuesday at 7:01 PM2 repliesview on HN

Thanks, I hate it.


Replies

recursivecaveatlast Wednesday at 2:18 AM

This, along with stuff like implicit access modifiers based on case, nil interface confusion, named or multiple return values, channel lockups, and `append` oddities make it ring a bit hollow when people complain that no-one could be expected to google once and learn what snippet a `?` operator expands to. Like I don't even necessarily hate all these things, just please don't pretend it's the heart and soul of minimalism or approachable predictability.

nasretdinovlast Wednesday at 9:28 AM

Yeah, people complain about `if err != nil`, but the real issues are tricky rules around variable shadowing, lack of nil safety and immutability, cgo, defer semantics, etc