Re:Forsp: A Forth+Lisp Hybrid Lambda Calculus Language
by pierrebai on Tuesday June 11, 2024 @04:07PM
(#40650871)
Reading the example, I really wish the syntax for push and pop had been "<foo" (push foo on stack) and ">bar" (pop from stack into bar). I find the choice of $ and ^ not obvious. Especially since, for me, ^ implies popping, not pushing.
[ Parent
| on HN ]
Re:Forsp: A Forth+Lisp Hybrid Lambda Calculus Language
by xorvoid on Tuesday June 11, 2024 @04:57PM
(#40651381)
You can fork and fix that with sed. Haha.
I decided on using sigils and then my thought-process drifted to Perl/Php, so $ naturally felt like a variable definition (which naturally must pop from the stack). I guess ^ is “push ‘up’ to stack”. But it’s all really arbitrary irrelevant syntax. YMMV.
Re:Forsp: A Forth+Lisp Hybrid Lambda Calculus Language
by dandanua on Saturday June 15, 2024 @03:46PM
(#40692232)
'$' is common for interpolation in many languages. It's a good choice.
Awesome language, and it's definitely important from a theoretical point of view. However, you've missed the chance to call it "LiFo" :)