lua-users home
lua-l archive

Re: [PROPOSAL 5.4] alternate way of format/pack/unpack (in the string library)

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


I think /work ? Sometimes the code for in-progress versions is released on the website, but I don't think any are available now. However, Roberto did mention perhaps moving to Git, which might lead to Lua's development being on GitHub completely? (Don't quote me please)

On Fri, May 26, 2017, 14:47 J Doe <general@nativemethods.com> wrote:

> On May 26, 2017, at 3:03 PM, Aaron B. <aaron@zadzmo.org> wrote:
>
> On 2017年5月26日 17:32:49 +0200
> François Perrad <francois.perrad@gadz.org> wrote:
>
>>    printf("x = %d  y = %d", 10, 20);                           -- C
>>    string.format("x = %d  y = %d", 10, 20)                     -- Lua 5.0
>>    ("x = %d  y = %d"):format(10, 20)                           -- Lua 5.1
>>    cout << "x = " << 10 << "  y = " << 20;                     -- C++
>>    string.buffer():put'x = ':put(10):put'  y = ':put(20)       -- proposal
>
> The C/Lua 5.0/Lua 5.1 way looks a lot more readable to me, compared to
> the C++/proposal method.

Hi,

As an aside to proposals for string formatting in Lua 5.4, is there a place on: lua.org that lists proposals and/or progress on upcoming Lua releases ?  I checked the download section for source code for possibly related project notes but didn't find what I was looking for.

Thanks,

- J


--
--
Ryan <vandor2012@gmail.com>
Software Developer / System Administrator
https://hashbang.sh

AltStyle によって変換されたページ (->オリジナル) /