lua-users home
lua-l archive

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


Roberto Ierusalimschy wrote:
How about automatic concatenation of juxtaposed string literals, as C does?
No need for special escape sequences at all! =)

This already has a meaning in Lua: f "hi" "ho"  is equivalent to
f("hi")("ho")

But does it have to have that meaning in Lua 5.2+ ?
I doubt there are much code around with constructions like
    f "hi" "ho" "ha" "he".
Just let the parser to concatenate all these adjacent string literals.

--
Shmuel