0.1.8 - Released 17 March 2013 ENHANCEMENTS
do
cf
can be inserted as a top level expression in a typed namespaceFIXES
MISC
0.1.7 - Released 26 February 2013
(let [a (read-string "1")
_ (assert (integer? a))]
(+ 10 a))
0.1.6
Ensure Result
is not introduced when performing type inference on drest fn apps
tc-ignore
is more do-like.
Workaround for a quirk in the Clojure compiler where protocols only get generated in
a top-level do
.
(identity (do (def-protocol foo (bar [this]))
bar)) ;; <-- bar cannot be resolved
vs.
(do (def-protocol foo (bar [this]))
bar) ;; <-- bar is resolvable
(patch by Stephen Compall, issue #3)
into-array
logic
(patch by Stephen Compall, issue #4)into-array>
generalises Java types, does not need redundant type annotations. See User Documentation in wiki.clojure.core/class
.
(class ) is always a Class
(class nil) is always a nil0.1.5
ann-datatype
, ann-protocol
, ann-pprotocol
syntax to be flatter
(ann-protocol pname
method-name method-type ...)
(ann-dataype dname
[field-name :- field-type ...])defprotocol>
0.1.4
0.1.3
method-type
(method-type 'java.io.File/getName)
prints the current Typed Clojure type for the getName method of File0.1.2
seq
, next
, conj
0.1.1
ann-form
finally checks its expression is of the expected typeCan you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close