News for hackers. Stuff that matters.
Re:(On | No) Syntactic Support for Error Handling by 9rx on Wednesday June 04, 2025 @11:56AM (#44182154)
> the obvious solution is try-catch, Java style.

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

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

The cons are already well known. That's why you're already not using 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!).

There are no comments on this comment yet.