Fork me on GitHub
#clojure-dev
<
2021-10-02
>
pyr13:10:44

Hi, (/ -9223372036854775808 -1) returns -9223372036854775808 which feels wrong. In most other cases there is a silent type promotion to the nearest type (in this case bigint) is this expected behavior. Likewise it feels odd that there is no unchecked-divide which could have helped at least catch the overflow error and react appropriately, am I missing something I should be doing?

🤯 1
pyr14:10:12

quot is the same and it all comes down to Numbers/divide I'll need to run and will check in later this weekend