Comment

Comment by theamk

Neat!

Forward polish notation + multi-line programs is _weird_ though. It means you read tokens _right-to-left_ and then top to bottom. Readme gives good example in [0]:

The long form (same in Taka or Forth) of

    4
    3
    2
    +
is equivalent in Taka to

    3 4
    + 2
(and both leave 5 on top of stack, and 4 underneath it)

[0] https://codeberg.org/marton/taka#basic-syntax-and-execution

parent theamk 11 months ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton