And I'll chime in on Peter's side. I like boolean shortcut evaluation
and consider it in the same class as well known shortcuts for things
like autoincrement operator (i++). I can understand those that argue
for explicit comparisons and there is certainly nothing wrong with it.
But yeah, its just a stylistic thing, so each to their own.

Judah

On Fri, Jan 9, 2009 at 12:05 PM, Peter Boughton <[email protected]> wrote:
> Yes, I do it, and disagree with Barney on implicit conversion always being 
> evil.
>
> There are functions where implicit conversion shouldn't be used: 
> DateCompare(), Max(), etc - those ones should be compared against the 
> expected value.
>
> But when the boolean conversion is known and unambigious - Query.RecordCount, 
> Len(), ArrayLen(), find(), etc - it is perfectly acceptable to rely on it.
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317672
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