Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: anyway to make this look better

by John M. Dlugosz (Monsignor)
on May 19, 2011 at 19:15 UTC ( [id://905782]=note: print w/replies, xml ) Need Help??


in reply to Re^2: anyway to make this look better
in thread anyway to make this look better

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://905782]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-19 02:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found