RE: Concantenate vs Pound Signs within Quotes

2011-01-03 Thread Justin Scott
Is it merely a stylistic difference between cfset myvar = What do you think of #this#? / and cfset myvar = What do you think of this ? / Or is there a speed advantage to the latter which cancels out any increased readability in the former? The former would be faster in some situations

RE: Concantenate vs Pound Signs within Quotes

2011-01-03 Thread Mark A. Kruger
Shannon, There is likely a speed difference because CF does not have to introspect and evaluate the string any further with the second option... but I would say you would need a really really long string to see the difference :) Still, I'd have to say I favor the second in most cases. I only

RE: Concantenate vs Pound Signs within Quotes

2011-01-03 Thread Justin Scott
Is it merely a stylistic difference between cfset myvar = What do you think of #this#? / and cfset myvar = What do you think of this ? / Or is there a speed advantage to the latter which cancels out any increased readability in the former? The former would be faster in some

re: Concantenate vs Pound Signs within Quotes

2011-01-03 Thread Jason Fisher
Merely stylistic. Depends on the coder's feelings on readability, which is personal preference as much as anything. From: Shannon Rhodes shan...@rhodesedge.com Sent: Monday, January 03, 2011 9:18 AM To: cf-talk cf-talk@houseoffusion.com Subject:

Re: Concantenate vs Pound Signs within Quotes

2011-01-03 Thread John M Bliss
Marginally valid test for giggles...(on CF8)... cfset myvar = arrayNew(1) cfset starttick = getTickCount() cfloop index=i from=1 to=100 cfset myvar[i] = What do you think of #i#? / /cfloop cfoutput#Evaluate(getTickCount() - starttick)#/cfoutput ...produced 1119. cfset myvar = arrayNew(1)

Re: Concantenate vs Pound Signs within Quotes

2011-01-03 Thread Shannon Rhodes
Thanks guys, that's about what I expected. As a stylistic difference, I would not advocate changing existing code to eliminate pound signs, whereas there are those who argue the speed advantage of moving to concantenation only. While I like concantenation, I see no problem with choosing ease

Re: Concantenate vs Pound Signs within Quotes

2011-01-03 Thread Michael Grant
I try to use pound signs as little as possible. It's a bit of a hang over from the old cf4.x days but I personally find it a) easier to read and b) more akin to other languages. On Mon, Jan 3, 2011 at 9:27 AM, Shannon Rhodes shan...@rhodesedge.comwrote: Thanks guys, that's about what I