annotations and macros

25 views
Skip to first unread message

Kevin Downey

unread,
Jan 10, 2012, 7:21:09 PM1/10/12
to Clojure Dev
https://github.com/clojure/clojure/blob/master/src/clj/clojure/core.clj#L4816

the use of symbol? means if you try to add annotations to deftypes
using macros like in this example (from johncourtland on irc)

https://gist.github.com/1592051

doesn't work unless you quote the symbol that names in the class
(WebServiceRef in this case needs to be 'WebServiceRef)

it seems like the above should be (or (symbol? …) (class? …))

--
And what is good, Phaedrus,
And what is not good—
Need we ask anyone to tell us these things?

Reply all
Reply to author
Forward
0 new messages