Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: A set of new operators. In keeping with the design of Perl?

by TheDamian (Priest)
on May 19, 2003 at 09:05 UTC ( #259098=note: print w/ replies, xml ) Need Help??


in reply to Re: A set of new operators. In keeping with the design of Perl?
in thread A set of new operators. In keeping with the design of Perl?

Perl 6 will have built-in n-ary min and max operators.

But they almost certainly won't have assignment versions, until some evil person writes:

module In::Extremis; multi infix:max= (Num $curr is rw, Num $new) is exported { $curr = max $curr, $new; } multi infix:min= (Num $curr is rw, Num $new) is exported { $curr = min $curr, $new; }

Oops! Too late. ;-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2016-06-30 06:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (389 votes). Check out past polls.