3 ms·
I've wondered for a long time why the dot was chosen for this instead of the question mark. Using the dot instead of the the semicolon to end definitions seems
by astrobe_ 3y ago
I've wondered for a long time why the dot was chosen for this instead of the question mark. Using the dot instead of the the semicolon to end definitions seems more natural (as far as "natural" makes sense in an RPN language). That's what I did in my dialect.
I understood why when I wanted to use it as a calculator. All relevant keys for simple computations are then on the keypad.
Well, Forth is flexible enough that you could define "00" to display results; the rule is that the interpreter looks for tokens in the dictionary first, and the try to convert to a number if a word of that name doesn't exist.