On Thu, Oct 13, 2016 at 3:54 PM Konstantin Khomoutov <
flatw...@users.sourceforge.net> wrote:
>
> That's because there's the difference between the so-called normative
> texts and so-called informative texts. Normative texts intently use dry
> language with as minimal wording as possible to not a
On Thursday, October 13, 2016 at 9:55:01 PM UTC+8, Konstantin Khomoutov
wrote:
>
> On Thu, 13 Oct 2016 05:47:33 -0700 (PDT)
> di...@veryhaha.com wrote:
>
> [...]
> > Thanks, Ian.
> > The recover1.go has many great examples to understand the mechanism
> > of panic/recover.
> > I think I ha
On Thu, 13 Oct 2016 05:47:33 -0700 (PDT)
d...@veryhaha.com wrote:
[...]
> Thanks, Ian.
> The recover1.go has many great examples to understand the mechanism
> of panic/recover.
> I think I have get it.
> And I still think the spec doc is shallow.
That's because there's the difference between the
On Thursday, October 13, 2016 at 1:30:48 AM UTC+8, Ian Lance Taylor wrote:
>
> On Wed, Oct 12, 2016 at 9:21 AM, >
> wrote:
> > 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 I wrote some ex
On Wed, Oct 12, 2016 at 9:21 AM, wrote:
> 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 I wrote some examples to get the mechanism of panic/recover in Golang.
>
> // example A
> func main() {
>
On Thursday, October 13, 2016 at 1:08:41 AM UTC+8, Konstantin Khomoutov
wrote:
>
> On Wed, 12 Oct 2016 09:21:07 -0700 (PDT)
> di...@veryhaha.com wrote:
>
> > 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.
On Wed, 12 Oct 2016 09:21:07 -0700 (PDT)
d...@veryhaha.com wrote:
> 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 t
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 I wrote some examples to get the mechanism of panic/recover in Golang.
// example A
func main() {
defer func() {
fmt.Println(recover()