If they should accept any statement (which I also think is good) then the parenthesis after onerror probably have to be mandatory. It's possible to allow it to be left empty, though.
/ Martin Stjernholm, Roxen IS
Previous text:
2003-10-02 00:00: Subject: Re: throw or return
I think I would like continue to redo the try. I'm not totally clear what "avoid rethrow" would mean...
I really like try <statement> [ onerror [(variable decl)] <statement> ] [ finally <statement> ]
but note that I'd like all three to be statement, not { ... }, so you can write
try foo() onerror werror("got error!!1!¡\n");
if you like.
/ Mirar