lua-users home
lua-l archive

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


2018-01-07 5:01 GMT+02:00 Soni "They/Them" L. <fakedme@gmail.com>:

print("{\n\z
     \x20   \"hello\": \"world\"\n\z
     }")

On 2018-01-07 07:48, Dirk Laurie wrote
Isn't that just a tortuous way of coding something that Lua can do much more conveniently?

print [[{
     "hello": "world"
}]]

Not if CR-LF must not be normalized (e.g. binary data or fixed format
like HTTP / …). Then you're forced to use "normal" strings.

-- nobody