Welcome! Please see the About page for a little more info on how this works.

0 votes
in Java Interop by

The bit* functions, in contrast to the other numerical functions, don't appear to check for overflow, i.e. {{(bit-test 13 200000)}} returns {{true}}.

It would be nice if the behaviour would fit the other numerical operators, i.e. throw on overflow and provide a variant that doesn't, and one that works with arbitrary precision, also not currently supported:
{{(bit-test (bigint 13) 20000)}}, {{(bit-test (biginteger 13) 20000)}} throw IllegalArgumentException.

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-1438 (reported by alex+import)
...