Closed iovdin closed 7 years ago
I expect (- 3 2 1) to be translated to 3 - 2 - 1 which evaluates to 0 in javascript while 3 - (2 - 1) evaluates to 2
(- 3 2 1)
3 - 2 - 1
0
3 - (2 - 1)
2
im to fix it
What an embarrassing mistake. I forgot about associativity! Commit 2c48d06 should make the appropriate operators left-associative.
Should work as you expect in v0.7.5.
I expect
(- 3 2 1)
to be translated to3 - 2 - 1
which evaluates to0
in javascript while3 - (2 - 1)
evaluates to2
im to fix it