On Wed, Sep 1, 2010 at 9:50 AM, Russ Michaels <[email protected]> wrote:
> > defo better to make sure they are defined. > Also using isDefined() is also bad as this search every single scope for > your variable and is thus quite slow and can potentially cause timeouts. > Much better to use StructKeyExists() and only test the scope your variable > is in. > > I'm not a fan of isDefined() [to put it mildly], but according to an engineer from Adobe at MAX in 2008, there's no performance difference between cfparam and isdefined (at least with CF9, if not earlier versions). I just think it's sloppy programming to have to use it. :) Scott -- ----------------------------------------- Scott Brady http://www.scottbrady.net/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336827 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

