Clojure sequence type

What is the correct type of sequence? I have this code:

(defrecord MethodInfo [^clojure.lang.ISeq preconds ^clojure.lang.ISeq postconds])

But it does not seem to correctly apply the type requirements, as I can write (new MethodInfo 1 2).

+5
source share
1 answer

I understand that Clojure Type Hints exist only for performance reasons, to improve the search for methods of step-by-step reflection; This is their only goal and not apply static types in a dynamic language.

See this answer to a similar question .

Edit:

Clojure 1.3, , , .

+7

All Articles