I wrote a proposal with function-scope named handlers that uses a per-call 
try flag and offers most features of 'catch', but it hasn't received any 
attention...
https://github.com/golang/go/issues/27519

On Saturday, June 29, 2019 at 12:45:37 PM UTC-7, Robert Engels wrote:
>
> If you don’t understand the history you are doomed to repeat it. The ‘try’ 
> proposal is barely better than the current  situation. There is as a reason 
> exception handling with try catch was designed along with OO. It simplifies 
> error handling immensely. “Try” as you might, you might think you are 
> improving on it, but you’re not. 
>
> Go should implement caught exceptions and be done with it. Stop trying to 
> be cute. Take what works elsewhere and stop thinking you’re always the 
> smartest person in the room. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/7e3c1225-cc66-4bd0-b8f7-250ee5bb0e53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to