On Tue, 08 Aug 2000 23:43:26 -0400, Ken Fox wrote: >(assuming min() is polymorphic): > > min($a, $b) eq $a > >Ugly, but minimal changes to the language. We could adopt a syntax similar to sort(): $lowest = min($x, $y, $z); # default: numerical (?) $first = min { $a cmp $b } ($x, $y, $z); # alphabetical -- Bart.
- Re: RFC 54 (v1) Operators: Polymorphic comparisons Damian Conway
- Re: RFC 54 (v1) Operators: Polymorphic comparisons Glenn Linderman
- Re: RFC 54 (v1) Operators: Polymorphic comparisons Chaim Frenkel
- Re: RFC 54 (v1) Operators: Polymorphic comparison... Dan Sugalski
- Re: RFC 54 (v1) Operators: Polymorphic compar... Clayton Scott
- Re: RFC 54 (v1) Operators: Polymorphic co... David L. Nicol
- Re: RFC 54 (v1) Operators: Polymorphic co... Damian Conway
- Re: RFC 54 (v1) Operators: Polymorphic comparisons Hildo Biersma
- Re: RFC 54 (v1) Operators: Polymorphic comparisons Michael Fowler