Dan Sugalski wrote:
> 
> perl cribs from english as much as
> any other language, spending some time to get names that fit well makes
> perfect sense, especially since most of the perl programmers that start
> using this won't be coming with huge gobs of experience from languages that
> already do it.

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.

I find it preferable to "die" which has always struck me as morbid, even
if it does echo the equally objectionable unix "kill."  "Killing to send
a signal" sounds like La Casa Nostra or president Clinton flying over
Bosnia.  (Opposed to, for instance, LBJ, who killed because he got residuals
on the damn bombs) (my source is a vietnam-era veteran hitchhiker I picked
up while on summer vacation this year)

Because of the MTOWTDI nature of the Perl experiment, eventually there
will be perl programmers trying to make sense of C++ and Java(?) nomenclature
in which one throws exceptions and catches them with exception handlers.

This language (throw, catch) seems natural and I have seen no viable alternative
on this mailing list (although it is very possible that it was at the bottom of
a thread I abandoned after reading the first ten on-topic messages.) and I have
begun using it in "perl6 example code" included in my RFC submissions.



-- 
                          David Nicol 816.235.1187 [EMAIL PROTECTED]
:wq

Reply via email to