lua-users home
lua-l archive

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


HyperHacker wrote:
[...]
> So it's \z now to continue a line? That's kinda ugly. What's wrong
> with just \<line break>?

That already means 'literal newline':

a = "foo\
bar"
print(a)

->

foo
bar

Yeah, \z is ugly, but TBH I can't think of anything cleaner they could
have done, and it *is* needed.

-- 
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│ "I have always wished for my computer to be as easy to use as my
│ telephone; my wish has come true because I can no longer figure out
│ how to use my telephone." --- Bjarne Stroustrup

Attachment: signature.asc
Description: OpenPGP digital signature