develooper Front page | perl.perl6.language | Postings from April 2010

Re: A new era for Temporal

Thread Previous | Thread Next
From:
Mark J. Reed
Date:
April 12, 2010 03:42
Subject:
Re: A new era for Temporal
Message ID:
z2tf60fe001004120342nb539390ep972776b2f59e5d1b@mail.gmail.com
On Mon, Apr 12, 2010 at 6:38 AM, Mark J. Reed <markjreed@gmail.com> wrote:

> I think that having a standard, minimal API for this defined in core as a
>> Date role would be ideal.
>
>
> Agreed.  In fact, I'd like to see DateTime be defined explicitly as a
> superset (subrole) of Date, with a method for extracting just the Date
> portion built in to DateTime.
>

Er, I meant that to read "(subrole?)".  Not sure that inheritance is the way
to go here, but I do think that logically a DateTime should be built on top
of a Date, rather than having Date be a whittled-down DateTime with
too-different an API.

-- 
Mark J. Reed <markjreed@gmail.com>


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About