Then we'll agree to disagree. I've updated the "best practices" document I passed around last week to reflect the "ALWAYS or NEVER" rule.
http://dintenfass.com/cfcbestpractices/ Thanks to all who commented and helped make this a more useful document. > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of Barney Boisvert > Sent: Friday, March 19, 2004 11:39 AM > To: [EMAIL PROTECTED] > Subject: RE: [CFCDev] Unscoped references in CFSET within CFFUNCTION > > > We already have this situation, just we don't explicitly use the 'local' > scope. Every single function invocation has both 'foo' and > 'arguments.foo'. > That's the whole reason that you MUST either always or never use > arguments. > The idea is that by ignoring the 'arguments' scope, we can > eliminate various > nasties, including this one. > > Cheers, > barneyb > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Raymond Camden > > Sent: Friday, March 19, 2004 11:18 AM > > To: [EMAIL PROTECTED] > > Subject: RE: [CFCDev] Unscoped references in CFSET within CFFUNCTION > > > > > Second, you can't use argument names in the local variables > > > scope (because CF makes them local variables behind the > > > scenes). Consequently, you'll never have a local variable > > > and an argument with the same name, so there is no need to > > > differentiate the arguments with a scope; they are already > > > differentiated. > > > > > > > Although even if you could use them (let's pretend you had a > > Local.* scope), > > it would seem like a bad idea to have arguments.foo and > > local.foo anyway as > > it would be confusing in the code. > > > > (Just being nitpicky.) > > > > ============================================================== > > ============= > > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc > > (www.mindseye.com) > > Member of Team Macromedia > > (http://www.macromedia.com/go/teammacromedia) > > > > Email : [EMAIL PROTECTED] > > Blog : www.camdenfamily.com/morpheus/blog > > Yahoo IM : morpheus > > > > "My ally is the Force, and a powerful ally it is." - Yoda > > > > > > ---------------------------------------------------------- > > You are subscribed to cfcdev. To unsubscribe, send an email > > to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' > > in the message of the email. > > > > CFCDev is run by CFCZone (www.cfczone.org) and supported > > by Mindtool, Corporation (www.mindtool.com). > > > > An archive of the CFCDev list is available at > > www.mail-archive.com/[EMAIL PROTECTED] > > > > ---------------------------------------------------------- > You are subscribed to cfcdev. To unsubscribe, send an email > to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' > in the message of the email. > > CFCDev is run by CFCZone (www.cfczone.org) and supported > by Mindtool, Corporation (www.mindtool.com). > > An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED] ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
