Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Perl: porters
[perl #108286] Wishlist: Overridable keywords
 

Index | Next | Previous | View Flat


perlbug-followup at perl

Apr 24, 2012, 1:26 PM


Views: 316
Permalink
[perl #108286] Wishlist: Overridable keywords [In reply to]

On Tue Apr 24 13:16:11 2012, doy [at] tozt wrote:
> On Tue, Apr 24, 2012 at 12:57:12PM -0700, Father Chrysostomos via RT
> wrote:
> > On Tue Apr 24 11:59:36 2012, jv wrote:
> > > [Quoting Jesse Luehrs, on April 24 2012, 13:49, in "Re: [perl
> #108286] W"]
> > > > > I cannot imagine a sensible purpose to override else. Can you?
> > > >
> > > > No, I think that if() should be the overridable part, with
> 'else' and
> > > > 'elsif' just as much a part of the syntax as '{' or '}'.
> > >
> > > Precisely.
> >
> > I’m having trouble understanding what you disagree with.
> >
> > What I am proposing would allow
> >
> > use subs "if";
> > sub if { ... }
> >
> > plus magic attached to \&if via Devel::Declare or Devel::CallParser
> to
> > parse if/elsif/else however it wants, maybe even allowing elsunless.
>
> I have no issues with this. But if the \&if is responsible for parsing
> the entire if/elsif/else construct (which I think it should be), how
> does the idea of overriding elsif/else independently work at all?

You would only do that if you wanted to start a construct with elsif or
else.

--

Father Chrysostomos


---
via perlbug: queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=108286

Subject User Time
[perl #108286] Wishlist: Overridable keywords perlbug-comment at perl Apr 21, 2012, 10:41 PM
    [perl #108286] Wishlist: Overridable keywords perlbug-comment at perl Apr 22, 2012, 1:56 PM
        [perl #108286] Wishlist: Overridable keywords perlbug-comment at perl Apr 22, 2012, 2:43 PM
        [perl #108286] Wishlist: Overridable keywords perlbug-followup at perl Apr 23, 2012, 2:55 PM
        [perl #108286] Wishlist: Overridable keywords perlbug-followup at perl Apr 23, 2012, 3:13 PM
        [perl #108286] Wishlist: Overridable keywords perlbug-followup at perl Apr 23, 2012, 3:19 PM
        [perl #108286] Wishlist: Overridable keywords perlbug-followup at perl Apr 23, 2012, 3:21 PM
        [perl #108286] Wishlist: Overridable keywords perlbug-followup at perl Apr 23, 2012, 6:11 PM
        [perl #108286] Wishlist: Overridable keywords perlbug-followup at perl Apr 23, 2012, 6:15 PM
        [perl #108286] Wishlist: Overridable keywords perlbug-followup at perl Apr 24, 2012, 8:56 AM
        [perl #108286] Wishlist: Overridable keywords perlbug-followup at perl Apr 24, 2012, 8:57 AM
        [perl #108286] Wishlist: Overridable keywords perlbug-followup at perl Apr 24, 2012, 12:57 PM
        [perl #108286] Wishlist: Overridable keywords perlbug-followup at perl Apr 24, 2012, 1:01 PM
        [perl #108286] Wishlist: Overridable keywords perlbug-followup at perl Apr 24, 2012, 1:03 PM
        [perl #108286] Wishlist: Overridable keywords perlbug-followup at perl Apr 24, 2012, 1:26 PM
        [perl #108286] Wishlist: Overridable keywords perlbug-followup at perl Apr 24, 2012, 8:44 PM
        [perl #108286] Wishlist: Overridable keywords perlbug-followup at perl Apr 24, 2012, 8:45 PM
        [perl #108286] Wishlist: Overridable keywords perlbug-followup at perl Apr 25, 2012, 8:47 PM
        [perl #108286] Wishlist: Overridable keywords perlbug-followup at perl Apr 27, 2012, 1:35 PM
        [perl #108286] Wishlist: Overridable keywords perlbug-followup at perl Apr 27, 2012, 2:00 PM
        [perl #108286] Wishlist: Overridable keywords perlbug-followup at perl Apr 28, 2012, 12:41 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.