> I try not to rely too much on systems that expect errors to > be thrown if I can avoid it, partly for semantic reasons, > i.e. hopefully errors shouldn't be thrown during "standard > operation", but also because the trapping of errors is > mechanically expensive.
The trapping of errors is only expensive when there's an error to be handled. Otherwise, it's cheap - often cheaper than the alternative of whatever conditional testing you'd otherwise do. And, there's no reason why you can't think of exceptions as just one more part of an API, just another sort of message passed between objects. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298840 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

