I remember in a previous discussion about cfif vs cfswitch that it was
determined that there really wasn't much of a difference, performance wise
between the 2...it basically came down to a matter of choice. I personally
prefer cfif's...but that is a personal preference...

Eric

-----Original Message-----
From: RobG [mailto:[EMAIL PROTECTED] 
Sent: Monday, 29 January 2007 15:57
To: CF-Talk
Subject: Re: cfif vs cfswitch

Cutter (CFRelated) wrote:
> 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.

I'd like to know the answer to this too, as I've been using switch/case
statements a lot and have had no trouble with them.

Oddly enough, one guy I worked for last year who thought he was a whole lot
better than he was, insisted that cfif's were faster than cfswitch/case and
insisted I do it his way.  Fortunately I don't work for this guy anymore. :)

Rob



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:268031
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to