I'm not sure the clumsy and awkward tags get quite the meaning you want. I ...
15 years, 1 month ago
(2010-04-07 22:52:28 UTC)
#2
I'm not sure the clumsy and awkward tags get quite
the meaning you want. I think the important part about
Go's panic is that, as you've pointed out before,
it is deliberately linked with the containing function
being torn down. Can we point at that as the way
to discourage overuse?
Russ
On 8 April 2010 08:52, Russ Cox <rsc@golang.org> wrote: > I'm not sure the clumsy ...
15 years, 1 month ago
(2010-04-07 22:55:58 UTC)
#3
On 8 April 2010 08:52, Russ Cox <rsc@golang.org> wrote:
> I'm not sure the clumsy and awkward tags get quite
> the meaning you want. I think the important part about
> Go's panic is that, as you've pointed out before,
> it is deliberately linked with the containing function
> being torn down. Can we point at that as the way
> to discourage overuse?
Agree. Stating that we deliberately made features of the language
difficult to use (even with a sound rationale) is just asking for
trouble. A side-effect (not sure if it's worth mentioning) of linking
panic to the containing function is that it encourages you to write
simpler code where panic/recover are used.
FYI http://codereview.appspot.com/824045/diff/10001/11001 File doc/go_lang_faq.html (right): http://codereview.appspot.com/824045/diff/10001/11001#newcode285 doc/go_lang_faq.html:285: We believe that coupling the usual idea of ...
15 years, 1 month ago
(2010-04-07 23:02:33 UTC)
#7
*** Submitted as http://code.google.com/p/go/source/detail?r=6236a8c15722 *** Language FAQ: update the entry on exceptions. R=rsc, iant CC=golang-dev ...
15 years, 1 month ago
(2010-04-07 23:03:17 UTC)
#8
Issue 824045: code review 824045: Language FAQ: update the entry on exceptions.
(Closed)
Created 15 years, 1 month ago by r
Modified 15 years, 1 month ago
Reviewers:
Base URL:
Comments: 4