Re: Missing in misc.e
- Posted by CChris <christian.cuvier at a?riculture.go?v.fr> Jul 23, 2007
- 686 views
Pete Lomax wrote: > > > I got to thinking that the problem with min() and max() may be ambiguity. > I also reflected that Eu uses remainder() rather than % or mod(). > So I began to wonder whether this would be any better: > }}} <eucode> > larger(a,b) > smaller(a,b) > largest(a) > smallest(a) > </eucode> {{{ > Just a random thought, no more. > > Regards, > Pete > PS I was actually quite pleasantly surprised to see my "all-in-one" routines > only 20% slower than CC's. Much better than I expected. Obviously the 2x hit > over DP's is another matter altogether, but I'm now tempted to resubmit... That could solve the naming problem indeed. However, I'd use "greater()" etc instead, because the things being compared may not be numeric. CChris