fuzion icon indicating copy to clipboard operation
fuzion copied to clipboard

`8 %% 5 = 3` does not cause an error, but I think it should

Open fridis opened this issue 1 year ago • 0 comments

I am very confused right now: the following line 8 % 5 = 3 behaves correctly:

 > ./build/bin/fz -e "say (8 % 5 = 3)"
true

However, suing %% instead should result in abool and produce an error if used in 8 %% 5 = 3, but it does not:

 > ./build/bin/fz -e "say (8 %% 5 = 3)"
false

Placing parentheses as in (8 %% 5) = 3 or 8 %% (5 = 3) produces an error as expected.

fridis avatar May 10 '24 10:05 fridis