Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: Should perl implement ,= or maybe overload .= (array context)

by TimToady (Parson)
on Aug 23, 2006 at 19:31 UTC ( [id://569186]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Should perl implement ,= or maybe overload .= (array context)
in thread Should perl implement ,= or maybe overload .= (array context)

We've debated adding ,= to Perl 6, but so far have decided it would too easy to confuse with the .= operator visually. I suppose we could add ,= just for completeness and then come back in six months and deprecate anyone who is using it. :-)

As for unifying with the .= operator, that wouldn't work at all in Perl 6 because we've taken over dot for method calls, and .= already indicates that you want to turn a non-mutating method call into a mutating method call. The append operator in Perl 6 is the ~=, but in Perl 6 the ~ character has very strong implications of stringification, and we wouldn't want to break that.

All that being said, it'd be trivial for you to add your own ,= operator to Perl 6, and that's probably where we should leave it.

  • Comment on Re^3: Should perl implement ,= or maybe overload .= (array context)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-25 23:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found