lua-users home
lua-l archive

Re: Escaping spaces

[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

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