Forth
xkcd.com
Forth
1–10 of 56 posts
Re: Forth
#2Can someone explain for me?
Re: Forth
#3Can someone explain for me?
Forth I assume uses reverse polish notation: arguments before the operator.
3 4 +
for example, would return 7.
Re: Forth
#4Can someone explain for me?
Forth uses RPN so the "verb" is last.
That is, you provide the data first (I and Forth) and the command (heart) last.
Re: Forth
#5Saw the same joke with Postscript many years ago.
Re: Forth
#6Re: Forth
#7FORTH LOVE? IF HONK THEN
Re: Forth
#8Can someone explain for me?
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 effectRe: Forth
#9Re: Forth
#10Can someone explain for me?
I found https://www.explainxkcd.com/wiki/index.php/Main_Page quite useful for that.