maybe it should just return ... nothing?

Maybe an error generated during the delete should be dealt with by some sort of error handler. "delete()" should just do what it says: "delete". And "dealWithAProblem()" should do just what it says, too

----- Original Message ----- From: "Dave Merrill" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, April 30, 2005 6:37 PM
Subject: [CFCDev] What does a DAO delete method return?



The number of rows deleted? A string ("127 planets deleted")? Success as a
boolean? (What would that mean? True if all requested rows were deleted,
else false, even if some were? Don't like this...)

I like the string, mostly. It feels a little like interface stuff though,
where the number of rows is more the actual action itself. But then every
client of it has to do pretty much the same formatting of the string,
including pluralizing etc, so I'm liking the string.

Comments?

Dave Merrill




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

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







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

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




Reply via email to