lua-users home
lua-l archive

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


On 10/25/2017 09:23 PM, Egor Skriptunoff wrote:
> But maybe someday Lua would become UTF-8-only language...
...
> Such UTF-8-only language would have some disadvantages:
> 5) All operations listed above would fail or generate exception on invalid UTF-8
> strings.
> 6) There would be no byte strings in Lua, but many users want something like
> "mutable byte arrays".

Probably we can introduce new type "byte_string" for strings like '\0xD8'.
Similarly as Lua 5.3 "integer" and "float" subtypes for type "number".

-- Martin