I think there's a lot of value to having good documentation and examples available directly in your development environment. I'm not sure what a reasonable alternative would be for that context other than having the examples and docs included (or at least, adjacent, as set-examples! allows for). It certainly seems reasonable to ensure that such information is not included in whatever distribution of clojure you would "ship" (whatever that means in your context).

The details are sticky though, and would involve touching processes that aren't the most forgiving AFAICT (i.e. the core clojure build and surrounds).

- Chas

On Jul 7, 2010, at 4:35 PM, Moritz Ulrich wrote:

I don't think examples should be integrated in the
function-definition. It's *way* to much bloat.

I like the way http://clojure-examples.appspot.com/clojure.core goes.
A wiki-like documentation for examples, linked to every
clojure-namespace. These examples could be serialized into some data
structure and integrated in clojure.jar. This would result in no bloat
for core.clj etc. and nice, accessible examples for our
development-tools.

On Wed, Jul 7, 2010 at 9:05 PM, John Cromartie <jcromar...@gmail.com> 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.

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



--
Moritz Ulrich
Programmer, Student, Almost normal Guy

http://www.google.com/profiles/ulrich.moritz

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