There's more than one way to do things | |
PerlMonks |
Re^3: anyway to make this look betterby John M. Dlugosz (Monsignor) |
on May 19, 2011 at 19:15 UTC ( [id://905782]=note: print w/replies, xml ) | Need Help?? |
I know. They are not letters. It's an academic difference though. No reason why a language couldn't include them for whatever purpose it wants. In fact, because they are not part of any existing words, it makes it easy to grab them to use for some hot-wired specific purpose, like a single-character constant. I have a dim memory of musing over that with the Perl6 people, as characters for constants or as part of user-defined operators were often classified wrong for the intended purpose. So it needs a way to specify, lexically, such a classification as well. A source filter could easily expand odd characters into something else, such as a legal identifier name. Because they are abnormal, it stands a good chance of not messing up the rest of the file as filters are wont to do. It would be interesting to see if anyone could get it to compile in 5.14 without a source filter. Perhaps munging the unicode database, perhaps other tricks I don't know about, perhaps some combination of overloads and other junk.
In Section
Seekers of Perl Wisdom
|
|