checking that an object exists 2005-04-07 - By Brad Friedman
Back Bernard Lebel wrote:
>Btw, besides the Linux limitation with the try/catch statement in >JScript, what's so wrong with exception catching? You are testing the >existence of an object, not running commands or calling methods. > > Its just a general programmer's rule (strong guideline). Exception throwing and catching is slower than normal function calling in almost all cases (I've never heard of one where its not). So, depending on exceptions for flow control, rather than normal function calls, can slow things down and is frowned upon.
Now granted, in most cases within XSI... who cares? Its still fast enough :) But some of the things Clay was doing sound pretty heavy so it may be worth trying to cut down the runtime. And also, once you get into the habbit of frowning upon exceptions... its hard to stop :) err... :(
-brad --- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|