News for hackers. Stuff that matters.
Re:Parentheses Are Just Typechecking by cratermoon on Thursday June 24, 2021 @07:50PM (#27625421)
Yeah, I mean right-to-left, in response to the question the article asks: Why have I never seen... ...a stack language that evaluates right-to-left?

it's because the tokens are evaluated in the order they are consumed by the parser. But now that I think about it, the tokens only look left-to-right because that's how the text is displayed. So what's really happening is that tokens are evaluated in FIFO, and there's no reason the tokens for (a b +) couldn't be written as (+ b a).

There are no comments on this comment yet.