lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Sat, Mar 22, 2014 at 3:38 PM, Lorenzo Donati
<lorenzodonatibz@tiscali.it> wrote:
> On 21/03/2014 21:44, Luiz Henrique de Figueiredo wrote:
>> Lua 5.3.0 (work2) is now available for testing at
>>       http://www.lua.org/work/lua-5.3.0-work2.tar.gz
>>
>> MD5   52bd13d0b40f637bc388a133b9bb8771  -
>> SHA1  e52ea0acf4b2d7bf042f48bd01dddc149d517184  -
>>
>> This is a work version. An updated reference manual is included but
>> all details may change in the final version. See
>>       http://www.lua.org/work/doc/readme.html
>>
>> The main change in Lua 5.3.0 is the introduction of integers.
>> For other changes, see
>>       http://www.lua.org/work/doc/readme.html#changes
>>
>> The complete diffs from work1 are at
>>       http://www.lua.org/work/diffs-lua-5.3.0-work1-work2.txt
>>
>> Enjoy. All feedback welcome. Thanks.
>> --lhf
>>
>>
>>
> Cool feature enhancements!
>
> A couple of features I'd like to see implemented would be:
>
> 1. Binary literals, such as 0b100101101, or something like that.
>
> 2. A not significant digit separator for better readability of long numbers:
>
> 1111_222_333_4444 would be parsed (lexed?) as 1111222333444,
> of course banning the underscore from the beginning and the end.
>
> Cheers!
> -- Lorenzo
>
> --
> ()  ascii ribbon campaign - against html e-mail
> /\  www.asciiribbon.org   - against proprietary attachments
>

I would like a %Q in string.format() for single-quoting strings :x
(it would also be nice if you could use format specifiers with %q/%Q,
as in: string.format([[ this is a string: %-16Q ]], "hello world!") ->
" this is a string: 'hello world!'  "