logoalt Hacker News

9rxlast Wednesday at 3:56 PM0 repliesview on HN

> the obvious solution is try-catch, Java style.

Go already has that, of course: https://go.dev/play/p/RrO1OrzIPNe

> Not even when listing cons that wouldn't have been there with try-catch.

What would you hope to learn from it? The cons are why you're already not making use of the feature that has existed since the very first release (in most cases that is; there is certainly a time and place for everything — even the standard library uses it sometimes!). Is it that you find it necessary for a third-party to remind you of why you have made your choices? I posit that most developers have a functioning memory that sees that unnecessary.

> But of course that would hurt them and the community in so many levels that they don't want to admit...

You may not have thought this through...