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

+1 vote
ago in Clojure by
closed ago by

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?

1 Answer

0 votes
ago by

Reviewing this it appears to be the same issue as cannot-create-anonymous-primitive-functions which tracks with this jira CLJ-919

...