Mythryl provides the usual arithmetic set of binary arithmetic operators. Unlike in C, however, these are not compiler-ordained operators but rather just default bindings established by the standard library, which may be easily redefined by the application programmer if desired. Default bindings include:

a+b # Integer and floating point addition. a-b # Integer and floating point subtraction. a*b # Integer and floating point multiplication. a/b # Integer and floating point division. a%b # Integer modulus. a|b # Integer bitwise-or. a&b # Integer bitwise-and. a^b # Integer bitwise-xor. a<<b # Integer left-shift. a>>b # Integer right-shift. a==b # Equality comparison on equality types. a!=b # Does-not-equal comparison on equality types. a<=b # Less-than or equal. a<b # Less-than. a>b # Greater-than. a>=b # Greater-than o equal.

Comments and suggestions to: bugs@mythryl.org