[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: single quotes vs. double quotes
- From: steve donovan <steve.j.donovan@...>
- Date: Mon, 12 Oct 2009 15:20:50 +0200
2009/10/12 Fernando P. García <fernando@develcuy.com>:
> In most languages (not only scripting) the use of single quotes is faster
> than double quotes, does it is applicable in Lua? perhaps for the other ways
> define strings?
No difference at all. Athough it's wise to be consistent ;)
Lua has another way of doing strings, [[such as this\n]]. This can be
multiline, and that '\n' is not a special escape. Otherwise, however,
exactly the same object