Quasiquote / quote in lua?
In Lisp, I can:
(a b c d e f g)
which means
look up b, c, d, e, f, g
look up a; apply value of a to above
Then I can also have:
`(a b c d e f g)
which is equiv <
(list 'a 'b 'c 'd 'e 'f 'g)
Now, in lua, I can:
[snipplet 1] foo = { Foo, {Cat, cat}, {Dog, dog} };
This is most likely an extension: {nil, {nil, nil}, {nil, nil}}
While what I really want is something like:
[snipplet 2]
{ "Foo", {"Cat", "cat"}, {"Dog", "dog"}}
Is there some kind of backquote method in lua?
I find [snipplet 1] more visually pleasing than [snipplet 2], but I mean snipplet 2.
Thanks!
+2
a source to share