Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Perl6: What is "idfirst letter"?

by moritz (Cardinal)
on Sep 07, 2011 at 21:08 UTC ( #924680=note: print w/replies, xml ) Need Help??


in reply to Perl6: What is "idfirst letter"?

Thanks for the question, I've tried to clarify it.

I think "idfirst" meant "a character that is allowed as the first character of an identifier", and the authoritative source in all parsing questions says that's <.alpha> (Unicode category "Letter", or the underscore).

Replies are listed 'Best First'.
Re^2: Perl6: What is "idfirst letter"?
by ikegami (Pope) on Sep 07, 2011 at 21:12 UTC
    Well, in Perl5, "[" and U+0001 are allowed as the first (and only) character of an identifier, but I don't think anyone would consider them idfirst. I don't know if Perl6 has such exceptions.
      No. There are special variables with "weird" names ($/, $!, $) but they aren't identifiers.

      I also don't think that [ counts as an identifier character in Perl 5, because you can't write sub [ { }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://924680]
help
Chatterbox?
[Lady_Aleena]: Would you use a module that is almost 150 characters to type with the use and importing all subroutines?
[LanX]: use module :all ?
[Lady_Aleena]: Lax, that would take it down to a little less than 100 characters. The module name is nearly 80 characters long.
Lady_Aleena has fumble fingers today.

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2017-05-24 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?