News for hackers. Stuff that matters.
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.
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" :)

Re:Forsp: A Forth+Lisp Hybrid Lambda Calculus Language by quibono on Tuesday June 11, 2024 @06:32PM (#40652410)
Interesting. I'm not sure about $ and ^ either but I think I'd keep getting confused about which one of < and > meant pushing vs pulling
Re:Forsp: A Forth+Lisp Hybrid Lambda Calculus Language by dugmartin on Tuesday June 11, 2024 @09:03PM (#40653406)
Maybe + for push and - for pop?