On Thu, May 12, 2016 at 3:11 PM, Nicola Mometto <brobro...@gmail.com> wrote: > Fair enough, but in this case types wouldn't really have helped: the author > did use `Double` type hints, mistakenly assuming that would make its code use > primitive types, which it does not since `Double` is boxed and not primitive. > Clojure already has compile time warnings about boxed math that would've > helped in this case if turned on, without any need for types: try compiling > OP's code after running `(set! *unchecked-math* :warn-on-boxed)`
Thanks for the details re: double. Apologies for being annoyed/ing. Next up: something like `(set! *unchecked-laziness* :warn-on-lazy)? We can relive the ignominious history of "$!" in Haskell. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.