Re: ANN: Pretty printer is now part of contrib

2009-04-07 Thread Michael Wood
On Tue, Apr 7, 2009 at 5:30 PM, Laurent PETIT wrote: [...] > It seems to me that clojure core already does what you say : a clojure.jar > and a clojure-src.jar. But then again, it's just for java source, not > clojure source. > > Maybe clojure-contrib could be aligned to what clojure core does ?

Re: ANN: Pretty printer is now part of contrib

2009-04-07 Thread Laurent PETIT
Indeed, it is, in the world of java source files. And indeed, even in the IDEs, it is possible to have both jars in the classpath and then gain the same benefits I myself cited above in the thread. Maybe I was confused because I made a parallel between java classes <> native platform code (via JI

Re: ANN: Pretty printer is now part of contrib

2009-04-07 Thread Paul Stadig
Isn't it somewhat standard procedure in the Java world (or at least the Maven world...sorry to bring that up again :)) to distribute with a clojure-contrib.jar and clojure-contrib-sources.jar, one being only the compiled classes and the other only being the source files? Paul On Tue, Apr 7, 2009

Re: ANN: Pretty printer is now part of contrib

2009-04-07 Thread BrianS
I use clojure-contrib quite a bit, and I find a lot of value out of having the clj files in the JAR. First, I find it easier to debug a project, second there are example CLJ files in the source code on how to use the libraries, and those are of great interest, and it is much easier to get to these

Re: ANN: Pretty printer is now part of contrib

2009-04-06 Thread Laurent PETIT
Hi, 2009/4/6 Tom Faulhaber > Another question is whether we should duplicate the classes and > the .clj files in the jar or should we just compile all of them. Is > there some value to having the source there? There certainly some value for both scenario : having classes seems an absolute req

Re: ANN: Pretty printer is now part of contrib

2009-04-06 Thread Tom Faulhaber
There are a bunch of things in the build file that "do nothing without complaining" when clojure.jar isn't set. I didn't want to make a radical change to the build file with this checkin but I didn't want users to not get the pretty printer and wonder why either. More generally, I think we need

Re: ANN: Pretty printer is now part of contrib

2009-04-06 Thread Stuart Halloway
Hi Tom, I think that the ant test tasks should depend on the compilation tasks, and that users will just have to specify a clojure.jar. Either that or the default test suite should be smart enough to skip the pretty printer tests with ant.jar not specified. Stuart > By (semi-)popular deman

ANN: Pretty printer is now part of contrib

2009-04-05 Thread Tom Faulhaber
By (semi-)popular demand, I have added the pretty printer and the Common Lisp format function (which are really the same package) into clojure.contrib. It all lives in the namespace clojure.contrib.pprint. Important: If you want to use pretty printing, you will have to compile all the source code