3 ms·
It seems like the parentheses could do a bit more work, instead of just being ignored. Suppose that at compile time, the language computes the expected stack si
by skybrian 7y ago
It seems like the parentheses could do a bit more work, instead of just being ignored. Suppose that at compile time, the language computes the expected stack size after each word? Then the close-parenthesis could be a compile-time assertion that the stack size matches the open paren, plus the number of arguments left on the stack by the previous word.