On Mon, 14 Aug 2000 12:32:32 -0500, David L. Nicol wrote:
>I find "throw" to be a perfectly good synonym for "raise" an exception. The
>english language equivalent is a piece of steel machinery, when it breaks
>while running, which is said to "throw a rod" or "throw a bolt" depending
>of course on the nature of the broken item that comes flying out of the
>mechanism at dangerous and possibly inventor-fatal speeds.
Your explanation makes it sound as if the program can just blow up in
your face. I sure hope that error trapping goes in a somewhat more
controlled manner.
>I find it preferable to "die" which has always struck me as morbid, even
>if it does echo the equally objectionable unix "kill."
Noooo.... to me, "die" just means it simply stops working. Nothing
blowing up.
Just to make sure some opposition is heard: I've always thought of
"throw" as very silly word. To me, a program is much like a maze, a
multilevel walk in an old castle. There are unexpected trapdoors, but as
long as they stay closed, you can simply continue. If such a trapdoor
open, you fall through, someimes through several floors, until somewhere
you encounter a safety net: you were caught. You can continue from
there. If there was no safety net, you keep falling, well, into the
water, out of the castle (er, "program".)
An error is not a ball.
--
Bart.