John Porter writes:
> Heh, that's not OO-like syntax!  That's a switch statement!  :-(
> 
> Maybe this is "OO":
> 
>       attempt = new Try { cough "outa here"; };
>       attempt.catch( matawba => { sustain } );
>       attempt.catch( ebola => { overrule } );
>       attempt.catch( { punt } );
>       attempt.try();
> 
> Off I go...

Another thread spirals out of control.

The naming of 'catch' and 'throw', and an imagined 'true' OO
language's implementation of catch and try are both tragically
useless.

Collect the list of *serious* suggestions for catch and throw names,
include catch and throw, and let Larry sort it out.  I strongly
suspect we'll end up with catch and try/throw because they are widely
used elsewhere in the industry.  And if I know our $Larry, it'll be
'try' because it's shorter than 'eval'.  :-)

(and don't even make me suggest that 'catch' be named 'else').

Nat
 

Reply via email to