develooper Front page | perl.perl5.porters | Postings from May 2012

Re: [perl #108286] continue, else and elsif (Wishlist: Overridable keywords)

Thread Previous | Thread Next
From:
Eric Brine
Date:
May 15, 2012 13:05
Subject:
Re: [perl #108286] continue, else and elsif (Wishlist: Overridable keywords)
Message ID:
CALJW-qHo1Vc38Fkp1w3m0UHh7WCiuxGBPy2rii1AjGCceWj2tA@mail.gmail.com
On Tue, May 15, 2012 at 3:08 PM, Jesse Luehrs <doy@tozt.net> wrote:

> On Tue, May 15, 2012 at 03:03:01PM -0400, Eric Brine wrote:
> > On Tue, May 15, 2012 at 12:55 PM, Jesse Luehrs <doy@tozt.net> wrote:
> >
> > > I don't think else should be overridable.
> >
> >
> > Everything you say about "if-else" also applies to "try-catch". Should it
> > be impossible to override "catch"?
>
> Nothing about this is making it impossible to override anything. You
> just do so by overriding 'if' instead of 'else' (or 'try' instead of
> 'catch', in this case).
>

I know. And my question remains unanswered.

You said it should be impossible to override "else". Do you also believe it
should be impossible to override "catch"? If not, then why not? All the
reasons you gave to justify making it impossible to override "else" also
apply to "catch".

- Eric


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About