Re: Improved exception reporting

2008-11-16 Thread Howard Lewis Ship
Another idea I had was this (and I haven't had a chance to check the source code to see if any of this is already implemented): When Clojure creates a new Java class for a function, it should find a way to hang the meta-data for the function as a static field on the function. Alternately, there

Re: Improved exception reporting

2008-11-16 Thread Stuart Sierra
On Nov 16, 8:33 am, Rich Hickey <[EMAIL PROTECTED]> wrote: > I'm certainly interested in improving the error reporting, but in this > partiicular case: > >  java.lang.ClassCastException: clojure.lang.LazyCons > > is my all-time pet-peeve exception message, and it comes from the JVM. > Why on earth

Re: Improved exception reporting

2008-11-16 Thread Rich Hickey
On Nov 14, 3:50 pm, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > On Nov 14, 2008, at 3:11 PM, Howard Lewis Ship wrote: > > > The point is, an exception that said something like: > > > "Expected java.lang.Comparable but received :king" would have helped > > me unravel this much, much easier!