I’m writing some Clojure code that depends upon a number of constants.
They will be used within tight inner loops, so it’s important that they will be used and optimised as efficiently as possible by the Clojure compiler+JVM combination. I would normally used a “public static final” constant in Java for the same purpose.
What is the best way to declare these?
I think
def-ing things in the global namespace is about as close as you can come.