[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Why non-escaped newlines are prohibited in single-quoted string literals?
- From: "Soni L." <fakedme@...>
- Date: Sun, 29 Jan 2017 20:34:37 -0200
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.
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.