ClojureCLR v3.1 Release Notes

  • ➕ Added a new clojure.math namespace which provides wrappers for the functions available in java.lang.Math. 👍 These functions are narrowed to only long and double overloads and provide primitive support without reflection.

    In addition, the following functions were added to clojure.core:

    • ⚡️ abs - absolute value in optimized form for all Clojure numeric types (long, double, ratio, bigint, bigdecimal)
    • NaN? - predicate for doubles to check whether "not a number"
    • infinite? - predicate for doubles to check whether positive or negative infinity

    • CLJ-2668 Add NaN? and infinite? predicates

    • CLJ-2664 Add clojure.java.math namespace, wrappers for java.lang.Math

    • ⚡️ CLJ-2673 Add abs, and update min and max to use Math impls when possible

    • 📄 CLJ-2677 clojure.math - fix method reflection in bodies and inlines, fix docstrings, renamed

    • CLJ-2689 Fix clojure.math tests to be more tolerant of floating point comparisons