> Sean, can you give a case where it is a) unnecessary and b) > required with regards to dynamic processing - I think this > would help clarify the situation. > > I used to avoid it like the plague on advice of others but > really I haven't really found any huge performance hit with > it and in some cases you have to used it when evaluating data > - is there some hidden way to avoid using Evaluate?
In earlier versions of CF, there used to be all sorts of problems that you could only solve effectively using Evaluate. As CFML has matured, these problems have been reduced using new syntax, to the point where I can't think of any cases where I still need to use Evaluate. However, it's always handy to know that it's there in case I do need it. > If its not required or not advised when it comes to use - why > is it still in the CF dictionary and not deprecated and been > replaced with a faster more efficient means of dynamic evaluation. The underlying problem is simply that dynamic evaluation is slow. Taking a string and treating it like an expression is slow. Evaluate can't be replaced with a faster, more efficient means of dynamic evaluation because it's that evaluation that's the problem. Again, there may be some cases where it's still the best solution to a problem, but in general you'd want to avoid dynamic evaluation if you don't need to use it. And it's still in the "CF dictionary" for backwards compatibility, if for no other reason. Why should I have to rewrite my CF 2 code if I don't need to? There are other odds and ends in CF that used to be tremendously useful - form.fieldnames comes to mind - but that simply aren't especially useful any more as the language has matured and provided alternatives. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
