Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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)
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2014-12-21 13:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (105 votes), past polls