Clojure ^ floats against # ^ floats?

What is the difference between ^floats and #^floats in annotations like Clojure?

In a transfer request, someone suggested using this annotation:

 (.put #^floats init-fft-array) 

who did the trick, but I don’t know why the "#" is. I also found this worked:

 (.put ^floats init-fft-array) 

Is there any difference?

+5
source share
1 answer

#^floats is an obsolete syntax, a more preferable variant of Clojure ^floats .

+10
source

Source: https://habr.com/ru/post/987882/


All Articles