On Wed, Feb 16, 2022 at 3:40 PM Robert Engels <reng...@ix.netcom.com> wrote:
>
> I don’t disagree. It is used in C because they don’t have exceptions so you 
> need centralized handling.  Go can be viewed as similar in that respect - but 
> with some extra limitations and additions.

I'd say that the main reason that people don't need to use goto for
error handling in Go is that Go has the defer statement.

Ian

-- 
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/CAOyqgcVhUkC3sK%3D2yrVQKvs_osz89fyPbdem2AWH22po2_neWQ%40mail.gmail.com.

Reply via email to