On of java's pitfalls is file access, when compared to things like PERL, so anything you can do to cut down on file acessing the better so I would tend to say the first code with the IF would be better.
Adam H On Fri, 28 Jan 2005 10:43:07 -0500, Claude Schneegans <[EMAIL PROTECTED]> wrote: > >>It seems to use the power of CF more. > > It may be, but is it really what makes "good code"? > > The first code is more intuitive , logical and it corresponds to the > real situation. > It explains more clearly the two situations that can be encountered. > The second code leads to think that the second case is an error of the > first, which is not true. > And BTW, the first code could still be embeded inside a CFTRY to handle > true errors, ... > and use all the power of CF! ;-) > > -- > _______________________________________ > REUSE CODE! Use custom tags; > See http://www.contentbox.com/claude/customtags/tagstore.cfm > (Please send any spam to this address: [EMAIL PROTECTED]) > Thanks. > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192093 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

