T
Timo Stamm
Daniel said:This is exactly the point that Bloch is making in Effective Java. The
two examples come from "Item 39: Use exceptions only for exceptional
conditions" and the first is preceeded by the comment "Horrible abuse of
exceptions. Don't ever do this!". The discussion of performance is
just a rebuttal of the argument that using exceptions in this way would
be quicker by avoiding termination test for each iteration of the loop.
Thanks Daniel, it makes a lot more sense now.
I agree with Mike's assessment of the book. And it's not just the two
of us, it is widely regarded as the best book ever written on Java
programming.
Maybe it's time to update my bookshelf.
Timo