|
|
| Just another Perl shrine | |
| PerlMonks |
Re^9: Definition of numerically equal and rationale for 'you' == 'me'by moritz (Cardinal) |
| on Mar 03, 2012 at 13:32 UTC ( #957670=note: print w/ replies, xml ) | Need Help?? |
|
Well, everything is possible with the right amount of disambiguation rules. Perl 6 doesn't have barewords, and type names must be predeclared. If a subroutine of name x and another symbol with that name (type name, constant, enum element) are in scope, the parser disambiguates in favor of the latter, unless there are parens after the token. In fact, constants can give you a taste of sigil-less Perl 6 already:
This works today in both Rakudo and Niecza.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||