Nando wrote:

I might also add something here ... Dave, if you have a bias toward using
cfscript because it's supposed to be faster, you might want to take a fresh
look at that. It's no longer the case in MX, especially with CFC's. Remember
that everything you write as a CFC is going to be compilied into java byte
code before it's run.


True - everything is compiled into java byte code anyways. Nando is also right that cfscript doesn't contain all the functionality of CFML tags. There are some work arounds with UDFs. It's a matter of preference. I tend to write a lot in cfscript because it has become very familar to me and it might/can be easier to maintain some code in cfscript than tags. Please take this a bunch of salt - cfscript V. tags has been a hot topic before and I really see no need to discuss the finer points of it here. This is might kinda how I see it:

<cfscript>
   variables.A = 1;
   variables.B = 2;
   variables.C = 4;
   variables.D = 5;
   variables.E = 6;
   variables.F = 7;
</cfscript>

Versus:
<cfset variables.A = 1 />
<cfset variables.B = 2 />
<cfset variables.C = 4 />
<cfset variables.D = 5 />
<cfset variables.E = 6 />
<cfset variables.F = 7 />

To my eye, it's easy to read the cfscript statements as well as a less typing in the end. Plus, to my eye - I can see logically that these sets are all occuring together. Secondly, cfscript might be more familar to you because of experience in other script like languages (java, javascript, etc.).

There was a discussion somewhere about the time MM would need to devote to
allow developers to write everything in CFML also in cfscript - and the
consensus was that it would be a waste of many thousands of hours of
developer time at Macromedia to maintain 2 syntaxes that will be compiled to
byte code anyway. It's better that they focus on new features and ironing
out any bugs.



I agree with Nando. Although, I wouldn't mind having cfthrow in cfscript without using a udf. But, hey! if I get that - then other people will want other things ;-)


--
Peter J. Farrell :: Maestro Publishing

blog    :: http://blog.maestropublishing.com
email   :: [EMAIL PROTECTED]
phone   :: 651-204-0513

You need only two tools: WD-40 and Duct Tape
If it doesn't move and it should, use WD-40.
If it moves and shouldn't, use the duct tape.
--


---------------------------------------------------------- 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]



Reply via email to