2 ms·
So, serious question: if the property of a concatenative language is the ability to pass outputs to inputs of a function without specifying parameters, could Io
by mondoshawan 10y ago
So, serious question: if the property of a concatenative language is the ability to pass outputs to inputs of a function without specifying parameters, could Iolang or Smalltalk also be described as concatenative? Ie:
Transcript show: 'foo'; cr.
In this case the output of "Transcript show:" is the Transcript object, which is used as the sender for cr.
- yorwba 10y agoThe property of concatenative languages is not the ability to compose functions without specifying parameters, but that this in the only way of building programs. Your Smalltalk example has a lot more special syntax going on, in a stack-based concatenative syntax it might be written as Transcript ' foo' show cr assuming appropriate primitive programs "Transcript", "'" (for literal quoting), "show" and "cr"