lua-users home
lua-l archive

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

On 29/01/17 10:22 AM, Egor Skriptunoff wrote:

I have a suggestion to allow using of non-escaped newlines
in literal strings delimited by single or double quotes.

I think it would be handy all these three definitions to be
syntactically valid and equivalent:

local str1 = 'A
local str2 = 'A\
local str3 = 'A\nB'

Currently, the definition of str1 gives syntax error.
I don't see any problems that could appear by enabling syntax
used for str1.

I think Lua would be a bit more comfortable to use
with unnecessary prohibition removed.

-- Egor

I wish we had something slightly different:


Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.