I made std.time for Phobos, please review my code.

Michel Fortin michel.fortin at michelf.com
Tue Apr 27 08:16:46 PDT 2010


On 2010-04-27 10:58:33 -0400, bearophile <bearophileHUGS at lycos.com> said:

> In D2 the runtime of Phobos and Tango have being merged, so all D 
> programmers can install both libs. So the two libs must have distinct 
> contents.
> So I'm for removing the time module from Phobos, and keep only the 
> Tango one. So this module is waste of time, and efforts have to be 
> redirected in improving or rewriting the time module of Tango.
> Othrwise in D2 it will happen the same mess it's happend in D1, where 
> you have two partially duplicated libs. All D2 programmers will want to 
> install both libs, and they will not desire to choose what time lib to 
> use. One time lit is enough.

Tango's license is more restrictive than Phobos. It might not be a 
concern to you, but this is one reason someone might not want to use 
Tango in a project. Saying everyone will always want to use both libs 
is a little too much optimistic in my opinion. Phobos isn't using the 
Boost license for nothing.

About the mess, as long as both libraries run on the same runtime, the 
problems should be confined to writing conversion function to convert 
the data types that differs between the two libraries. I don't think 
this is anything to worry about: those things happens all the time when 
you're using libraries from different sources.

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/



More information about the Digitalmars-d-announce mailing list