Hi Tom,

Great! Please go ahead.
But please document this rule in the cookbook.

Regards,
Michiel


----- Original Message ----- From: "Tom Morris" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, August 08, 2007 4:29 PM
Subject: [argouml-dev] Null vs empty collection in API


We have a number of places where API methods which are specified to return a Collection can also return a null value. This causes the caller to have to
write additional unnecessary code to first check for null before using the
return value.

I'd like us to forbid this practice and require all methods which are
specified to return a Collection be required to return an empty collection
instead of a null. Unless there objections, I'm going to start by changing
any methods in the Model subsystem which exhibit this behavior.

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.11.6/938 - Release Date: 5/08/2007 16:16



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to