3 ms·
Stack-based languages like forth have a SOV (postfix) order. An interesting property of postfix languages is that the order of evaluation of functions is ident
by merloen 15y ago
Stack-based languages like forth have a SOV (postfix) order.
An interesting property of postfix languages is that the order of evaluation of functions is identical to the order of the function names in the source code:
Functional (prefix, C)
f3(f1("") f2(""))
OO (infix, Java)
"".f1().f3("".f2())
Stack-based (postfix, Forth)
"" f1 "" f2 f3