Forth I assume uses reverse polish notation: arguments before the operator.
3 4 +
for example, would return 7.
zabzonk•32m ago
> would return 7
more pedantically, it would push 7 onto the stack
HFguy•1h ago
Forth uses RPN so the "verb" is last.
That is, you provide the data first (I and Forth) and the command (heart) last.
e12e•43m ago
A different way to say the same: in forth, words get pushed on the stack, and popped from the stack by words that take arguments:
code stack
I Forth love
Forth love I
love I
Forth
; love presumably pops
; subject, object args
; from stack - and does something
; perhaps prints as side effect
ajhenrydev•1h ago
spott•1h ago
3 4 +
for example, would return 7.
zabzonk•32m ago
more pedantically, it would push 7 onto the stack
HFguy•1h ago
That is, you provide the data first (I and Forth) and the command (heart) last.
e12e•43m ago
daureg•28m ago