On Sat, 11 Jan 2003, Bruce Van Allen wrote:
> I need _num at times when _name doesn't quite make sense for its
> converse:
> day_ord - e.g., 'Fifth' [the proper ('full') ordinal]
> day_ord_num - e.g., '5th' [really an abbreviation]
> because day_ord_name or day_name_ord might imply something like
> 'Wednesdayth'.
>
> OTOH, this would be efficient:
> day_ord - '5th'
> day_ord_str - 'Fifth'
>
> Not saying here that DateTime.pm should provide ordinals, but just that
> it would be great to extend its method-naming scheme downstream, and an
> unambiguous distinction between string and numerical returns would
> help...
I think Lingua::EN::Nums2Words handles this. I'm not inclined to have
this be part of the base functionality. It'd be fine in a decorator.
> 3. I vote for static DateTime objects. I think that makes it easier to
> keep track of complicated namespaces, re-entries, etc., anyway.
>
> 4. For setters, I'm happy with usages like
> $new_date = $date->clone( day => 5 );
> and its implied
> $date = $date->clone( day => 5 );
I'm still wavering here, but there's other things to work on anyway.
-dave
/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/