[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.3: functional version of // operator?
- From: Miles Bader <miles@...>
- Date: Mon, 08 Jul 2013 17:12:42 +0900
steve donovan <steve.j.donovan@gmail.com> writes:
> On Mon, Jul 8, 2013 at 9:31 AM, Miles Bader <miles@gnu.org> wrote:
>
>> Hmm, I think I'd prefer math.idiv... oO;
>>
> Why not just check _VERSION, unless I'm missing a subtlety?
(1) doesn't work
(2) _VERSION checks are ugly/flaky anyway, I'd prefer feature checks
where possible (e.g. the way it checks whether math.ifloor is nil
or not)
Rena's version will "work" but it's gross...
-miles
--
Conservative, n. A statesman enamored of existing evils, as opposed to a
Liberal, who wants to replace them with new ones.