user972946
user972946

Reputation:

What is the difference between `#^` type hint and `^` type hint?

I have seen type hints in both styles, for example, clojure-contrib.server-socket writes:

(.close #^ServerSocket (:server-socket server))

And Clojure's java-interop document uses only ^ to do type hinting.

Is there any difference between the two?

Upvotes: 5

Views: 158

Answers (1)

Jordan Lewis
Jordan Lewis

Reputation: 17928

The #^ syntax is deprecated in favor of the ^ syntax. See previous question.

Upvotes: 6

Related Questions