Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Thoughts on some new operators for perl (6 or 7)

by Abigail-II (Bishop)
on Mar 10, 2004 at 09:51 UTC ( #335400=note: print w/replies, xml ) Need Help??


in reply to Thoughts on some new operators for perl (6 or 7)

A couple of things:
  • Lobbying for operators is best done at the appropriate perl6 language list(s). That's where the perl6 action is, and that's where doubts like They may already be in development can be answered quickly.
  • The task seems to be too minor to warrant two new operators.
  • If you do this often, you ought to be using generalized functions like min and max, or even reduce.
  • I don't know whether perl6 will have here documents, but in perl5, =<< would be ambiguous.
  • =>> and =<< are not in the spirit of ||=. In the latter, the implied operator is first, the assignment later. With your suggested operators, this is reversed.
  • Perl6 will allow you to define your own operators.

Abigail

  • Comment on Re: Thoughts on some new operators for perl (6 or 7)

Replies are listed 'Best First'.
Re: Re: Thoughts on some new operators for perl (6 or 7)
by Juerd (Abbot) on Mar 10, 2004 at 10:51 UTC

    I don't know whether perl6 will have here documents, but in perl5, =<< would be ambiguous.

    I'm sure I read somewhere that Perl 6 *will* have here documents. They were said to require quotes around the terminator specification and automatically remove equal indenting.

    But... I can't find the reference anywhere, so it could just have been a dream.

    Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://335400]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2016-12-03 11:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (55 votes). Check out past polls.