Yes, that's exactly what I'm saying.
If you look at the decompiled java code for a cfm page you should be able to verify that for yourself.
I'm not sure what the official position of Macromedia is on decompiling the generated java for a page, so I don't want to post it to the list, but I can tell you that the script based syntax generates java code that doesn't emit whitespace and the tag based syntax does.
FWIW I pretty much never use script syntax because I find the tag based syntax easier to read and debug and I don't believe the performance difference between the two is significant despite the extra work that has to be done in the code compiled from tag syntax.
If you want to check for yourself, I used the follwing two blocks of code:
script.cfm
*********************
<cfscript>
myStruct = structNew();
for (i=1; i LTE 10; i=i+1) {
myStruct["key#i#"] = "value#i#";
}
</cfscript>
*********************tags.cfm ********************* <cfset myStruct = structNew()>
<cfloop from="1" to="10" index="i">
<cfset myStruct["key#i#"] = "value#i#">
</cfloop>
*********************Spike
Jeffry Houser wrote:
At 05:50 PM 10/3/2004, you wrote:
The key difference is that with cfscript syntax you know at compile time whether whitespace will be emitted somewhere in the code block because you have to explicitly output stuff with the writeOutput() function.
So, you're saying that cfscript will not create any white space (unless you do so yourself), while cfml creates white space all the time?
I suspect this is not true. Can anyone verify?
-- Jeffry Houser, Web Developer, Writer, Songwriter, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Books: <http://www.instantcoldfusion.com> My Recording Studio: <http://www.fcfstudios.com> My Energetic Acoustic Rock Band: <http://www.farcryfly.com> -- When did Reality Become TV
----------------------------------------------------------
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]
--
-------------------------------------------- Stephen Milligan Code poet for hire http://www.spike.org.uk
Do you cfeclipse? http://cfeclipse.tigris.org
----------------------------------------------------------
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]
