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

Re: Perl 6 language -- change in hyperoperator syntax

by kal (Hermit)
on Dec 31, 2003 at 15:10 UTC ( [id://317897]=note: print w/replies, xml ) Need Help??


in reply to Perl 6 language -- change in hyperoperator syntax

I agree totally, I think >>op<< sucks quite hard. This may be some kind of "I'm special, look at me!" (*bounces*) neon-flashing-light type thing to make people think about what they are doing, but that seems unPerlish. I could see myself ^op'ing a lot too, more's the pity.

Further, it seems to be that >> and << are just long-hand for « and », irrespectively. So, I can only deduce that it's a) Larry's dastardly plan to force keyboard manufacturers to add more buttons/symbols (thus continuing the "Perl is linenoise" meme) or b) a sop to the French.

Indeed, < and > are such troublesome characters in some scenarios that some languages (ColdFusion, *ick*) don't use them at all. Bizarro. What's worse is that <<>> is a quoting operator, so <<+>> means the string '+', which could lead to some interesting bugs.

Replies are listed 'Best First'.
Re: Re: Perl 6 language -- change in hyperoperator syntax
by clscott (Friar) on Jan 01, 2004 at 13:58 UTC
    The reason that Coldfusion doesn't use < and > as operators because it uses them to XML-like syntax for defining operations and seperating them from the surrounding HTML:
    <CFQUERY NAME="pocket" DATASOURCE= "contents_of_my_pocket"> SELECT * FROM contents </CFQUERY> <CFSET today = DateFormat(now(), "dddd, mmmm d, yyyy")>
    --
    Clayton

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-03-29 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found