It could be nice if we could use heredocs in Lua. Well, it is already there but with a fixed delimiter "
[[" and "
- This change would make Lua harder to parse (for external parsers, too, which interest me. I think
[[ ]] strings are just fine, personally. Remember that Lua does count
]] inside the strings, although as someone pointed out this fails in certain cases, like:
a = [[ [a, [b, c]] ]]
- I would encourage people to try to figure out how to use the power and simplicity of Lua rather than trying to make it into some other language. --RiciLake
a = [=[ [a, [b, c]] ]=]
RecentChanges · preferences
edit · history
Last edited October 18, 2008 9:24 pm GMT (diff)