Dave:

I don't think CF actually recognizes the difference between single and
double quotes.  My best guess would be there is no downside.

FWIW, I usually use double quotes to delimit strings (eg <cfset
myName="charlie" />) and single quotes to delimit (string) arguments in
functions (eg replace(myString, 'foobar', 'fubar', 'all')).

I doubt there's any sort of performance increase (or decrease)...I just find
it to be more readable in that it helps me to be able to quickly scan code
and identify functions/strings that much easier.  Yeah, i know.  weird :)

Charlie

----- Original Message ----- 
From: "David Fafard" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, August 14, 2003 4:35 PM
Subject: single quotes instead of doubles in cfml


> Hi.
>
> I have started using 'single quotes' in all my
> cfml coding... like <cfset theVar = 'dave' >
>
> I just like the look better.
>
> Is there any downside to this?
> Does the coldfusion parser have to work harder?
>
> Thanks,
> Dave Fafard
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com

Reply via email to