It's really just a matter of style. I know of no discernible performance difference, and the functionality is basically identical (though, CFINVOKE can be used either as an invocation on an existing method OR as a combined create/invoke -- make sure you know which you are doing).
Personally, I just prefer the script-based syntax of createObject() and myObj.myMethod(), and many code examples that float around are often written by developers used to other languages, where the script syntax feels more natural (it's certainly less verbose) -- I suspect that's why you see it on this list. To each their own, though. - Nathan > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of Kairoh! > Sent: Saturday, January 17, 2004 3:05 AM > To: [EMAIL PROTECTED] > Subject: [CFCDev] <cfobject> and <cfinvoke> VS createObject > > > Hi, > > I started using Coldfusion when Coldfusion MX was released. I > always try to > use the latest tags, features in favor of older tags or features. Based on > this practice I am using <cfobject> and <cfinvoke> wherever I can > instead of > CreateObject(). However, in lots of code examples I see on this list > CreateObject() is used in favor of <cfobject> and <cfinvoke>. Is there a > special reason for this? > > ---------------------------------------------------------- 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]
