On 9/16/05, Charlie Griefer <[EMAIL PROTECTED]> wrote:
> On 9/16/05, Patrick McElhaney <[EMAIL PROTECTED]> wrote:
> > You should avoid returning null if possible.
> 
> why is this?

Because every time I call the function I have to figure out what to do
if the returned value is null. Figuring out how to avoid returning
null often leads to a better design. Google "Introduce Null Object"
for more information.

Also, CF doesn't really have a concept of null. There was a discussion
here on the subject a few weeks ago. I'm not sure if it's even
possible to return null in CF.

Patrick


-- 
Patrick McElhaney
704.560.9117
http://pmcelhaney.weblogs.us


----------------------------------------------------------
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