Invoking an anonymous primitive function seems to not use the primitive interface.
(set! *unchecked-math* :warn-on-boxed)
(let [f (fn ^double [] 1.0)]
(+ 1.0 (f)))
;; Boxed math warning
Is this expected behaviour?it's at least very intentional in the compiler, invokePrim optimisations are only emitted for var callsites
The limitation to 4 arguments on primitive functions means itβs not always possible to use a defn instead.