3 ms·
Isn't Lua supposed to be an example of a concatenative language?
by bryanrasmussen 10y ago
Isn't Lua supposed to be an example of a concatenative language?
- _pmf_ 10y agoDo you mean Tcl?
- beagle3 10y agoNot 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.
- bryanrasmussen 10y agoNot sure where I had it from, probably some other language and I got it mixed up with Lua in my head.
- vvanders 10y agoNot really, the C API is stack based but it's concatenative to the degree that a C program uses a stack + heap.