Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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. ;-)


Comment on Re: Re: A set of new operators. In keeping with the design of Perl?
Select or Download Code

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 taking refuge in the Monastery: (7)
As of 2015-07-04 20:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls