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
- Re: RFC: Modify open() and opendir() to return handles Tom Christiansen
- Re: RFC: Modify open() and opendir() to return ha... Jonathan Scott Duff
- Re: RFC: Modify open() and opendir() to retur... Tom Christiansen
- Re: RFC: Modify open() and opendir() to r... Graham Barr
- Re: RFC: Modify open() and opendir() ... Tom Christiansen
- Re: RFC: Modify open() and opendir() ... Graham Barr
- Re: RFC: Modify open() and opendir() ... Tim Jenness
- Re: RFC: Modify open() and opendir() ... Peter Scott
- Re: RFC: Modify open() and opendir() ... Johan Vromans
- Re: RFC: Modify open() and opendir() ... Steve Simmons
- Re: try/catch (Was: Re: RFC: Modify o... Johan Vromans
- Re: try/catch (Was: Re: RFC: Modify o... Hildo Biersma
- Re: try/catch (Was: Re: RFC: Modify o... Johan Vromans
- Re: try/catch (Was: Re: RFC: Modify o... Graham Barr
- Re: try/catch (Was: Re: RFC: Modify o... Tom Christiansen
- Re: try/catch (Was: Re: RFC: Modify o... Graham Barr
- Re: try/catch (Was: Re: RFC: Modify o... Nathan Wiger
- Re: try/catch (Was: Re: RFC: Modify o... Tom Christiansen
- Re: try/catch (Was: Re: RFC: Modify o... Nathan Wiger
- Re: try/catch (Was: Re: RFC: Modify o... Tom Christiansen
- Re: try/catch (Was: Re: RFC: Modify o... Nathan Torkington
