Author: larry Date: Mon Nov 13 17:09:46 2006 New Revision: 13476 Modified: doc/trunk/design/syn/S03.pod
Log: Add infix min and max as form of "||" to enable meta mods like min= or »max« Modified: doc/trunk/design/syn/S03.pod ============================================================================== --- doc/trunk/design/syn/S03.pod (original) +++ doc/trunk/design/syn/S03.pod Mon Nov 13 17:09:46 2006 @@ -14,7 +14,7 @@ Date: 8 Mar 2004 Last Modified: 13 Nov 2006 Number: 3 - Version: 74 + Version: 75 =head1 Changes to Perl 5 operators @@ -448,6 +448,12 @@ As ordinary infix operators these may be negated (C<!before> and C<!after>) as well as reduced (C<[before]> and C<[after]>). +=item * Infix C<min> and C<max> may be used to select one or the other +of their arguments. Reducing listop forms C<[min]> and C<[max]> are +also available, as are the C<min=> and C<max=> assignment operators. +By default C<min> and C<max> use C<cmp> semantics. As with all C<cmp>-based +operators, this may be modified by an adverb specifying different semantics. + =item * Binary C<< => >> is no longer just a "fancy comma". It now constructs a C<Pair> object that can, among other things, be used to pass named arguments to functions. It provides scalar context to both sides. @@ -1672,7 +1678,7 @@ ~~ =:= === eqv !== !~~ !eq !=:= !=== !eqv etc. tight and && - tight or || ^^ // + tight or || ^^ // min max conditional ?? !! assignment := ::= => (also = with simple lvalues)