Hacker News new | ask | show | jobs
by tgv 1079 days ago
It'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.

2 comments

While 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.
Got it cheers