[
Lists Home |
Date Index |
Thread Index
]
> From: John Cowan [mailto:cowan@mercury.ccil.org]
> > I don't know why we argue about this being a good practice in Java.
> > Although it is an integral part of serious error handling, even in
> > J2SDK1.4, exception paths are about 3 orders of magnitude slower
than
> > return values (I just retested this to make sure its an accurate
> > statement for recent VMs). So as a regular course of processing
> > exceptions are *not* the right solution for most applications.
>
> If execution speed were everything, we'd write all our code in
assembly
> language.
Agreed, but the different between a bicycle and the space shuttle cannot
be ignored. Not to mention, many of us still do use assembler.
|