Thanx for the reference, Martin. It is a hoot what people will do. I
am not immune, I am sure.
Michael
Martin Cooper wrote:
MUCH worse would be returning from a 'finally' clause, which can cause
unexpected control flow behaviour. See "The Java Hall of Shame":
http://www.cs.arizona.edu/sumatra/hallofshame/
and also "The Lost Exception" in Bruce Eckel's "Thinking in Java".
--
Martin Cooper
On Sun, 29 Aug 2004 02:12:37 -0400 (EDT), Henri Yandell
<[EMAIL PROTECTED]> wrote:
On Sat, 28 Aug 2004, matthew.hawthorne wrote:
IMO, copy-paste reuse is the worst offense that a programmer can commit.
I agree that it's bad news.
But, I think the worst offense is this:
try {
// ...
} catch (Exception e) {
return null;
}
(shudder)
How lucky you've been. Have you never seen:
try {
...
} catch(Throwable t) {
// ignore
}
??? :)
Hen
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]