From: Nicolas Cannasse <warplayer@fr...> - 2004-10-31 09:42:28
> Let's talk about it :)
> Pro and cons of boths ?
> Comments anyone ?
After having a look at both GregorianDate and Julien's calendar interface,
my opinion is that a simplified Julien's calendar version would suit better
ExtLib. Simplified would mean having at most 2 modules : Date and Time, if
we keep separated, or only one module Date storing both day and time.
This/theses two modules should include most of basic operations, and some
advanced ones that are difficult to implement. Modules should be as "flat"
as possible (no sub module Period or functor usage needed).
Since the current sources are around 60 K (with some code duplication in
calendar) I think it's not a difficult task. Everybody on this list can
contribute thoughts and comments on what should/shouldn't be in the final
Mixing up dates and times in one module is a really bad idea, because
I predict that at some point you'll want to rewrite all the time
manipulation. Dealing with times is very complex.
Dates: you probably want to involve "Gregorian" in the name of the
date or calendar module, because again at some point in the future it
might be nice to add support for other types of calendar (eg. Julian,
or the Nengou(?) calendar used in Japan).
Richard Jones. http://www.annexia.org/http://www.j-london.com/
>>> http://www.team-notepad.com/ - collaboration tools for teams <<<
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
Write Apache modules in OCaml - http://www.merjis.com/developers/mod_caml