lua-users home
lua-l archive

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


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