I think we generally consider good style to be the way we as individuals
normally do it, i.e. consistent style is good style. I would always use
cfswitch where there are more than two static values to choose from,
therefore to me that's good style. I would also write <cfif
recordset.recordcount> and consider that elegant. Others find it appalling.
-----Original Message-----
From: Jim McAtee [mailto:[EMAIL PROTECTED]
Sent: Thursday, 12 February 2004 11:34 a.m.
To: CF-Talk
Subject: Re: Which is quicker
----- Original Message -----
From: "Matthew Walker" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, February 11, 2004 3:34 PM
Subject: RE: Which is quicker
> cfswitch is both quicker and more elegant. The only downside is that it
> doesn't handle dynamic values.
That's funny. I find CFSWITCH to be far from elegant. Mostly due to CF's
tag-based nature. You end up with a lot more crap in your code where you're
closing each CFCASE block. I think a CFIF statement is usually a lot more
readable as well as being more flexible.
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

