Re: Implementation of %
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Implementation of %
- From: "Adam D. Moss" <adam@...>
- Date: 2005年5月19日 11:19:14 +0100
The % version seems much more correct to me, though
I'd rather the two implementations were consistant.
On the other hand changing the behaviour of math.mod
to be a modulus instead of remainder operation could
subtly break some old code. Ho hum.
--adam
p.s. sieve.lua is around 12% faster with % instead
of math.mod() :)