Hi,

Announcing a new release of core.typed<https://github.com/clojure/core.typed>
.

[org.clojure/core.typed "0.1.24"]


There are some breaking changes surrounding the ann-{datatype,protocol}
macros, see the changelog and their corresponding var docs for the details.

We also now support adding annotations directly to a `def`, without the
need for a separate `ann` form.

eg.

(ann ^:no-check add-datatype-ancestors [Symbol (t/Set r/TCType) -> nil])
(defn add-datatype-ancestors
  "Add a set of ancestor overrides for the datatype named sym."
  [sym tset]
  ...)

becomes


 (defn ^:no-check ^{:ann '[Symbol (t/Set r/TCType) -> nil]}
  add-datatype-ancestors
  "Add a set of ancestor overrides for the datatype named sym."
  [sym tset]
  ...)

Note the metadata must be attached during the def, not via alter-meta!.
:ann metadata must also be quoted.

Enjoy!
Ambrose

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to