enkimute / ganja.js

:triangular_ruler: Javascript Geometric Algebra Generator for Javascript, c++, c#, rust, python. (with operator overloading and algebraic literals) -
MIT License
1.52k stars 107 forks source link

!true is not false #106

Closed kungfooman closed 3 years ago

kungfooman commented 3 years ago

image

This is quite confusing when suddenly normal JS logic doesn't work anymore

I think we could just check typeof and handle the boolean case "normally"?

enkimute commented 3 years ago

yes - that seems like a sensible thing to do