logoalt Hacker News

ok_dadlast Tuesday at 6:49 PM2 repliesview on HN

Go has specific goals like not hiding control flow. This would go against those goals, at least the ways people have thought to do it so far.


Replies

LinXitoWlast Tuesday at 11:34 PM

Isn't defer hidden control flow? The defer handling can happen at any point in the function, depending on when errors happen. Exactly like a finally block.

tialaramexlast Tuesday at 6:52 PM

I don't see how Try (the ? operator) is hidden control flow. It's terse, but it's not hidden.

show 5 replies