"Bryan C. Warnock" wrote:
> On Tue, 08 Aug 2000, Peter Bevan wrote:
[...]
>  > Error handling should be supported by it's own keyword
> i.e.: >
> > trap {
> >   #CODE
> > }
> > release (error) {
> >   # ERROR
> > }
> >
> > (just because I didn't want to steal throw and catch)
> 
> Why not?  Throw and catch are familiar to programmers.

Not all programmers.

> Creating brand new vocabulary may potentially hinder a Foo->Perl and
> Perl->Foo transition for someone.  Use what people know.

eval {
  #CODE
}
else {
  #ERROR
}

Reply via email to