At 7:11 PM -0700 8/29/02, David Wheeler wrote:
>On Thursday, August 29, 2002, at 06:40 PM, Dan Sugalski wrote:
>
>>Okay, now we properly return undef on error and set $@ to the error
>>code. Chattiness has been removed, and there's a proper export of
>>the sub that does the Applescript call. At some point I'll add the
>>separate compile and run subs, but until then...
>
>Um, now that I think about this, why not croak with the error, and
>let folks eval their calls. Better exception handling, that way.
Yech. Potentially fatal errors should be thrown only for potentially
fatal things. Failure to compile a script doesn't strike me as a life
or death kinda thing. (But, then, I'm not really a 'wrap it in an
eval' kind of programmer. It looks nasty in perl 5. Maybe in perl
6...)
--
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk