4 ms·
It wasn’t mentioned on the landing page (I think) but is this a concatenative programming language?
by theobreuerweil 3y ago
It wasn’t mentioned on the landing page (I think) but is this a concatenative programming language?
- tgv 3y agoIt's stack based, like Forth and RPN. So 1 2 3 * + means something like push(1); push(2); push(3); multiply-top-of-the-stack(); add-top-of-the-stack(); So `status pls` means: call the function status (which leaves its results on the stack) and print the top of the stack with new-lines (multiple lines if it's an array). Then `status upcase pls` would do something like the above, but it calls a "to uppercase" function before printing.
- theobreuerweil 3y agoGot it cheers
- mst 3y agoWhile I think 'pl' and 'pls' for print line and print lines is probably an excellent choice overall I can't help but see 'pls' and try and parse it as an abbreviated INTERCAL.