lua-users home
lua-l archive

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


On 12/17/18, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> Must it be an ASCII character? Why not Unicode/UTF8, as in 1 000 000?

what a great idea.
using unicode non-ASCII chars in place of ASCII in the core language syntax
in a situation where the latter are fully sufficient and nothing is
gained by doing so
seems in fact pretty silly.

instead using '_' as separator in integer literals (that is ignoring
any occurring
underscores in such literals) is a sound proposal also found in other
languages (java).
this is especially useful for binary literals (which Lua sadly still lacks).