[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua 5.3.0 (work2) now available
- From: Dirk Laurie <dirk.laurie@...>
- Date: Tue, 25 Mar 2014 21:19:33 +0200
2014-03-25 20:50 GMT+02:00 Coda Highland <firstname.lastname@example.org>:
> There's a de-facto standard in place now
>From Bouvier's Law Dictionary, Revised 6th Ed (1856) [bouvier]:
FACTO. In fact, in contradistinction to the lawfulness of the thing; it is
applied to anything actually done.
> are arithmetic shifts.
Thanks for this nearly complete list (Perl is missing) of languages
that I love to hate. Why is Perl missing? Because you did not look
it up or because it fails to fit the bill?
> Having Lua disagree in this respect violates the principle of least surprise.
The principle of least surprise, IMHO, demands that the idiom
x << m >> (64-n) should give a non-negative number less than 2^n,
consisting of the n bits starting at the (m+1)-st th bit from the left,
irrespective of whether that bit is a 0 or a 1.