[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua 5.3.0 (work2) now available
- From: Coroutines <coroutines@...>
- Date: Sat, 22 Mar 2014 23:05:48 -0700
On Sat, Mar 22, 2014 at 10:58 PM, steve donovan
> On Sun, Mar 23, 2014 at 12:38 AM, Lorenzo Donati
> <email@example.com> wrote:
>> 1. Binary literals, such as 0b100101101, or something like that.
> Easy enough to write:
>> function B(b) return tonumber(b,2) end
> But it's true these are not literals and involve a function call. I
> don't know of the general usefullness; mostly binary is used for
> training and then people move over to the more compact hex.
>> 2. A not significant digit separator for better readability of long numbers:
> It would be nice - I find myself counting zeros....
I could see binary literals potentially being used in a config file,
where function calls of any kind would be disallowed :>