[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: new thought experiment: what would you add to Lua ?
- From: Xavier Wang <weasley.wx@...>
- Date: Fri, 28 Sep 2018 10:52:58 +0800
I hope Lua could add #line support, just as this:
local M = {}
::line("test.lua", 10)::
-- generated lua code ...
::line(current, 4)::
-- other code...
It will much help for code generating in Lua.
Jim <djvaios@gmail.com> 于2018年9月15日周六 上午3:58写道:
>
> i would add support for binary and octal integer literals like
> 0b1001011 or 0o0755 as in Python and Ruby.
>
> octal integer literals are helpful when working with unix (file)
> modes/permissions (which i do frequently).
>
--
regards,
Xavier Wang.