[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New Lisp ?



In article <3C2AB04C.F4586FA8@quiotix.com>, Jeffrey Siegal 
<jbs@quiotix.com> wrote:

> Andreas Bogk wrote:
> > As soon as you pile up some layers of code, it quickly becomes tedious
> > to pass around handlers everywhere.  Just imagine passing a GUI dialog
> > for resolving a "disk full" condition all the way through the GUI,
> > your application code, your storage abstraction down to the actual
> > disk access.
> 
> What happens in Java is that you have to at least declare the exceptions
> up the chain anyway (the compiler will reject a method that doesn't
> catch or throw E which involves a method declared to throw E.  It isn't
> that much harder to explicitly pass the handler.  

That's perfectly true.

It's also true that dealing with exception specifications in Java 
*sucks*.  In large Java projects I've worked on the vast majority of cvs 
commits end up being maintainance on the exception specifications.  It's 
just a lot of pointless makework.

Being "not much harder" than Java is no recommendation.

-- Bruce