sakapon / Blaze

The library for basic mathematics.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shortcut of Boolean operations

sakapon opened this issue · comments

  • And: if (x == false) return false; return x & y;
  • Or: if (x == true) return true; return x | y;
  • Equivalence: x == y
  • Xor: x != y

Consider when a value is null.