Time to split up std.datetime into a package?
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Thu Jun 20 11:13:49 PDT 2013
On 6/20/13 12:31 PM, Jonathan M Davis wrote:
> It's _much_ easier to maintain tests
> when they're next to the functions that they're testing
I agree.
Regarding breaking the module up, a possible demarcation line would be
between "basic time stuff" and "calendar stuff". Basic time stuff means
simple linear time without months, leap years, leap seconds, Gregorian
and other calendars, and all aggravation caused by the slight mismatch
between Earth's rotations and revolutions. Also basic time stuff would
not worry about geopolitical stuff such as time zones, countries with
different daylight savings policies and such. The "calendar stuff"
module will take care of that.
Andrei
More information about the Digitalmars-d
mailing list