Re: Missing in misc.e

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu