On Wed, 16 Jul 2003, Eugene van der Pijll wrote:

> But no part of DateTime, the base module, should return these non-dates.
> They should only be a result of some action where it makes sense that
> something else than a date is returned.
>
> Specifically, the default parser should not return these things, and
> other parsers (the DBI ones, for example) should document that they can
> return DT::Undef or DT::Inf.

I'm inclined to agree with you here.

End users should not be getting back DT::Inf or DT::Undef (if the latter
eventually exists) unless they explicitly declare that they are working
in a domain where such things exist.  This can be done by using a specific
formatting module, for example for a database which can store infinite
datetime values.  Or by using the set math code, which definitely opens up
the possibility of infinity.

But otherwise, I'd prefer that the user not even have to know that
DT::Infinite exists, because for _many_ people, they won't understand what
it is for.


-dave

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

Reply via email to