On Thursday, October 13, 2016 at 1:08:41 AM UTC+8, Konstantin Khomoutov
> On Wed, 12 Oct 2016 09:21:07 -0700 (PDT)
> > I don't like the spec docs for panic/recover in Golang, for the spec
> > docs is vague and not clear on when recover will take effect.
> > So, it looks the calling of recover only takes effect only when both
> > of the following two conditions are met:
> > 1. the caller of calling recover must be a deferred function calling .
> > 2. the panic must happened in (may not originate from) the caller
> > function of caller of calling recover.
> Not to answer your question directly, but does  helps in
> understanding this part of the language?
> 1. https://blog.golang.org/defer-panic-and-recover
sorry, I feel this article is more shallow than spec on the panic/recover
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.