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

Re: Proposal for a new Temporal time-measurement paradigm

Thread Previous | Thread Next
From:
Jon Lang
Date:
April 22, 2010 20:15
Subject:
Re: Proposal for a new Temporal time-measurement paradigm
Message ID:
v2ief30550b1004222015readce10dkcf57d6442afa49e3@mail.gmail.com
Why do I find myself thinking of roles and classes here?

IMHO, we should have a role that represents abstractly a moment in
time.  This role should, in and of itself, not be tied to any
particular calendar; its purpose is so that one can write functions
that make reference to instances in time without locking oneself into
a particular labeling scheme.  We should also have a series of classes
that compose that role, each class representing a different calendar
scheme.  For perl 6.0.0, only one such class need be defined: the one
representing the Gregorian calendar.  Later on, modules can be written
to provide additional classes representing other calendar schemes.

Fine in theory; in practice, the big question is: how much can we get
the role to do, within the "no calendar preference" constraint?  And a
corollary to this: can we get it to do enough to be worthwhile?

-- 
Jonathan "Dataweaver" Lang

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