On Tue, 15 Jul 2003, Joshua Hoblitt wrote:

> We were talking about returning DT::Undef objects from parsers.  So, for
> example, if the _format_ being parsed _defines_ an unknown or undefined
> date/time an object can be returned that reflects this.  Simply
> returning undef when an object is expected is, IMHO, not a correct
> behavior.

Sure, if the format has something for unknown, I can see the usefulness of
such an object, although since undef also indicates unknown, I'm not sure
that's so bad.

> My fear is that people will start returning DT objects set to something
> like 0000-01-01T00:00:00 to indicate this case.

Yeah, that'd be ugly.


-dave

/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/

Reply via email to