Steve Simmons <[EMAIL PROTECTED]> writes:

> On Thu, Aug 03, 2000 at 08:54:35PM +0200, Johan Vromans wrote:
> >    try {
> >       java
> >    }
> >    catch (Exception e) {
> >       think again
> >    }
> 
> I like this.  It's perlish in that it builds off of a well-defined and
> proven mechanism, and it even *looks* perlish.

You missed the point.

If you need 6+ lines of code for each elementary error check, this is
what is going to happen (and it _does_ happen in almost every Java
program I've seen):

    try {
       open file
       while read a record
          process its contents
       finalize file processing
    }
    catch (Exception e) {
       error message: something went wrong
    }

All the details about what went wrong, and were, are sacrificed since
that would have required too much code, over and over again!

-- Johan

Reply via email to