Hacker News new | ask | show | jobs
by bryanrasmussen 3339 days ago
Isn't Lua supposed to be an example of a concatenative language?
3 comments

Not at all.

The definition I like to use of concatenative language is:

If "X Y" is a legal program, then "X" is a list of tokens and a legal program and "Y" is a list of tokens and a legal program, and semantically, executing "X Y" is equivalent to executing "X" and then executing "Y".

practical implementations often deviate a little from this ideal.

Not sure where I had it from, probably some other language and I got it mixed up with Lua in my head.
Not really, the C API is stack based but it's concatenative to the degree that a C program uses a stack + heap.
Do you mean Tcl?