[stack] Classifying languages by how they handle operands
"Don Groves" <[email protected]>
| Newsgroups | gmane.comp.lang.concatenative |
|---|---|
| Message-ID | <[email protected]> |
It occurred to me recently that one way to differentiate programming languages is by how they handle operands. Operands in many languages appear in two places. They are placed directly in expressions to be evaluated, such as a + b + c, and are passed to functions or procedures, such as add(a,b,c). Lisp and its cousins use operands only once, placing them in a structure preceded by an operator, (+ a b c) , effectively combining their passing and evaluation. The languages of interest to this group place operands in a structure followed by a sequence of operators, (a b c) + +, which also combines passing and evaluation. While admittedly low level, is this concept worthy of further discussion? Has it been discussed before, either here or elsewhere? -- Don