On Thu, 20 Jan 2005 [EMAIL PROTECTED] wrote:

DT::Set count() currently returns "undef" on error,
and "0" for empty sets.

Should it return "zero-but-true" (0e0) for empty sets?

No, this is just confusing. What do you mean by "on error"? Do you mean when a set is possibly infinite, and therefore uncountable? In thise case undef is right, because the value truly is unknown.


If it's an actual input error, it should throw an exception.


-dave

/*===================================================
VegGuide.Org                        www.BookIRead.com
Your guide to all that's veg.       My book blog
===================================================*/

Reply via email to