On Fri, 22 Jul 2005, Joshua Hoblitt wrote:

It appears as if Pugs is very close to being able to host a major
framework like DateTime.  I think that it's 'time' to start considering
porting DateTime to Perl6.  Even if for no other reason then to help
debug Pugs.  The big question that I believe needs to be settled is do
we make a 'straight' port of DateTime to Perl6 or do we take the
opportunity to do some re-engineering?

Well, I've already started a bit, but mainly to experiment with new APIs. My thought is that since there's a lot of time before Perl6 is really available, there's no reason not to experiment.

addressed in an API change.  My proposal is that the initial port be a
straight across translation of DateTime to Perl6 and that serious
re-engineering work be put off for DateTime2.

If you want to work on this that's cool, but I want to play with new API stuff. I think there's a couple things I'd like to fix:

- date-only stuff is complicated by the presence of times, time zones, leap seconds, etc.

- there should be a datetime class with no knowledge of time zones or leap seconds (floating time zone only), because lots of people want to do simple datetime math

- a more complex datetime+timezone+leap second class that does everything right, but offers a much complex API. For example, there probably need to be separate date math methods that operate on UTC or local aspects of the datetime.


-dave

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

Reply via email to