4 ms·
Standard word for printing the topmost element in Forth for decades, though. (The 1970 manual[1] uses it to introduce definitions instead, in place of the moder
by mananaysiempre 3y ago
Standard word for printing the topmost element in Forth for decades, though. (The 1970 manual[1] uses it to introduce definitions instead, in place of the modern-day colon, but by 1977 using it for printing was already the consensus and made it into the Forth-77 standard[2].) It is less than perfect for programmatic use, what with the obligatory space afterwards and no field-width support (there are other words for that), but very nice in a REPL, where using a single unshifted key on a US keyboard is important[3].
[1] https://www.1strecon.org/downloads/Forth_Resources/CM_ForthLanguageInteractiveComputing_1970.pdf https://www.1strecon.org/downloads/Forth_Resources/CM_ForthL...
[2] https://www.complang.tuwien.ac.at/forth/forth-77.txt https://www.complang.tuwien.ac.at/forth/forth-77.txt
[3] http://yosefk.com/blog/i-cant-believe-im-praising-tcl.html http://yosefk.com/blog/i-cant-believe-im-praising-tcl.html