[
Lists Home |
Date Index |
Thread Index
]
Martin Soukup scripsit:
> 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.
--
John Cowan http://www.ccil.org/~cowan cowan@ccil.org
To say that Bilbo's breath was taken away is no description at all. There
are no words left to express his staggerment, since Men changed the language
that they learned of elves in the days when all the world was wonderful.
--_The Hobbit_
|