Another reason behind not using exceptions as part of the logic inside you application (beside the performance issues so nicely outlined by Vince and the logic issues outlined by Hal) is the fact that you expect your object oriented code to be reusable. That is you get to create it and there are other 10-20 (100?) coders that use it to implement other functionalities in the product. They don't care about the code you did, they just want it to work in a way that is expected.
Given the most used practice in the OOP is to return null (or a NullObject) when you don't have anything to return (and you don't have an error, there is just nothing there to give back...) it seems only reasonable for other developers to expect you to do that.

Just my 2c...

mihaimm


On Sun, 2005-10-23 at 23:52 -0700, Barney Boisvert wrote:
asking a person to give you a reference to their non-existant spouse
is
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]

Reply via email to