Re: (source name)

2008-11-03 Thread carlitos
On Nov 3, 7:03 pm, Chouser <[EMAIL PROTECTED]> wrote: > [...] It's not pretty, and it only works on functions defined in the clojure > namespace.  [...] The variation below works in a more general setting: it will look for the source file anywhere in the classpath (including jar files) or in user

Re: (source name)

2008-11-03 Thread Chouser
On Sun, Nov 2, 2008 at 6:34 PM, Mark McGranaghan <[EMAIL PROTECTED]> wrote: > > I really like being able to find and check documentation in the REPL > with find-doc and doc, but I often would like to see the source code > of a function or macro to be able to understand it better or learn > from th

Re: (source name)

2008-11-03 Thread Graham Fawcett
On Sun, Nov 2, 2008 at 6:34 PM, Mark McGranaghan <[EMAIL PROTECTED]> wrote: > > I really like being able to find and check documentation in the REPL > with find-doc and doc, but I often would like to see the source code > of a function or macro to be able to understand it better or learn > from th

Re: (source name)

2008-11-03 Thread lpetit
And this could open the door to "organic code" : dynamically discovering the source code of functions, and - why not- correcting / adjusting the code by re-def ining the function by manipulating its original source code. Some sort of macro, at runtime :-) On Nov 3, 3:57 pm, Paul Barry <[EMAIL PR

Re: (source name)

2008-11-03 Thread Paul Barry
I agree that this would be helpful. On Nov 2, 6:34 pm, Mark McGranaghan <[EMAIL PROTECTED]> wrote: > I really like being able to find and check documentation in the REPL > with find-doc and doc, but I often would like to see the source code > of a function or macro to be able to understand it bet

(source name)

2008-11-02 Thread Mark McGranaghan
I really like being able to find and check documentation in the REPL with find-doc and doc, but I often would like to see the source code of a function or macro to be able to understand it better or learn from the implementation. To do this I switch into an editor with boot.clj, find and read the