lua-users home
lua-l archive

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


On Tue, 18 May 2010, Wesley Smith wrote:

> Perhaps I missed this, but what purpose do string continuations have
> when we have long string syntax?

Encoding long data without unwanted newlines (at least that's what I'm 
going to use it for.)  Sure the syntax is a little ugly, but it works.  
e.g.

data = "bla bla bla bla\*
	\032bla bla bla"

--> "bla bla bla bla bla bla bla"

I wasn't initially a fan of the swallowing of whitespace beyond the 
newline for indenting thing, but can see it's useful and can live with 
escaping leading _wanted_ spaces.

Joonas