5 ms·
The whole concept of a 'body' that isn't on a the stack when the word executes would take a bit of getting used to.
by protomyth 7y ago
The whole concept of a 'body' that isn't on a the stack when the word executes would take a bit of getting used to.
- codr7 7y agoThe implementation is definitely less Forthy as a consequence of embedding in C++ rather than aiming for rock bottom. Bodies, or scopes, are first class though. You can take their references and/or quote them.
- protomyth 7y agoPostscript does the: num {op} repeat form with the ability to take references of the code blocks using def.
- codr7 7y agoNice. I get the feeling that PostScript is close in spirit, they were also into pimping Forth using Lisp as inspiration. I think some of the HP-calculators also had similar languages, but never used them myself. For me, generic methods (or words in Forth lingo) is the biggest deal. Followed by scopes and compound literals such as stacks and scopes.