Is there a good practice for documenting the structure basis object
for structmaps?

As I'm using more Clojure code on a production, I'm finding it useful
to document structmaps, but the only way I can find to do it is using
the following pattern to add the doc meta to a var:

  (def #^{:doc "..."} mystruct (create-struct :name :description))

I'm not sure the actual basis object ( I think
clojure.lang.PersistentStructMap$Def) implements IObj to be able to
hold its own metadata.

I've found some interest in the idea of adding doc-string to
defstruct: http://www.mail-archive.com/clojure@googlegroups.com/msg14121.html

-- 
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

Reply via email to