On Jul 7, 2010, at 21:05 , John Cromartie wrote: > I've whipped up a proof-of-concept of how to implement built-in > examples for functions and macros. The general idea is to add an > attribute to the var that contains a list of docstrings and arg lists > or code that illustrate common usage. > > Let me know what you think: http://gist.github.com/466743 > > It could also be useful for generating documentation.
http://getclojure.org:8080/examples/concat is a nice way to get usage examples for a function :) they are actually real life and extracted from the #clojure channel logs. Regards, Heinz -- 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