typhon icon indicating copy to clipboard operation
typhon copied to clipboard

surprising precedence: base ** exponent :guard

Open dckc opened this issue 6 years ago • 0 comments

▲> def Int32 :DeepFrozen := -(2 ** 31)..!2 ** 31
Result: <[-2147483648, 2147483648) Int region>
▲> 2**50 :Int32
Result: 1125899906842624

WAT?!

oh...

▲> m`base ** exponent :guard`.expand()
Result: m`base.pow(guard.coerce(exponent, throw))`

dckc avatar Mar 11 '19 04:03 dckc