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

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

Index | Next | Previous | View Flat


perlbug-comment at perl

Apr 21, 2012, 10:41 PM


Views: 235
Permalink
[perl #108286] Wishlist: Overridable keywords

On Wed Apr 04 13:53:55 2012, ikegami [at] adaelis wrote:
> The builtin "if" should expect the following to follow it (ignoring
> whitespace)
>
> "(" EXPR ")" BLOCK ( "elsif" "(" EXPR ")" BLOCK )* ( "else" BLOCK )?
>
> None of those tokens should be overridable when parsing that rule
(although
> EXPR and BLOCK may use overridden tokens).

In that case, is there any reason why elsif needs to be a reserved word
outside of that context?

I’m also trying to plan ahead with regard to adding all keywords to the
CORE:: namespace.

It should be possible in the future for the ‘if’ keyword to be
implemented as a CV named &CORE::if, which has its own custom parser
that eats the elsif and else keywords.

But it won’t make much sense for there to be a &CORE::elsif subroutine.
It would just be a stub that produces a syntax error when inlined.
Maybe that does make sense. Then we could always change it later.

--

Father Chrysostomos

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.