What issues could there be?  It either works or it doesn't.  It's not like 
CFDocument or something where there are a whole bunch of moving parts 
involved.

He could be questioning the speed, but if anything I would imagine a 
cfswitch would be quicker than a bunch of cfif/cfelse statements, since it 
only has to process one expression and match the result to the case.

Probably, he did not like his code being rewritten and so made something up 
instead of saying "I personally don't like cfswitch."

-- Josh



----- Original Message ----- 
From: "Cutter (CFRelated)" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Monday, January 29, 2007 1:46 PM
Subject: cfif vs cfswitch


> Recently I rewrote one of the templates within our massive system. The
> template had two large cfif/cfelseif blocks that appeared better suited
> for switch/case statements, which I implemented in cfscript. When my
> boss saw this he said that there were issues with switch/case in CF, and
> I have come to find out that he rewrote the template (again) with the
> cfif/cfelseif statements. I have never seen anything stating issues with
> switch/case in CF, nor have I had any issues of my own in my 6+ years of
> development, so I figured I would ask the group if you might point me to
> postings outlining some of the issues he is worried about.
>
> Cutter
> _________________
> http://blog.cutterscrossing.com
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268017
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to