Time to split up std.datetime into a package?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Jun 21 14:35:21 PDT 2013


On 6/21/13 8:23 AM, Wyatt wrote:
> On Thursday, 20 June 2013 at 18:54:20 UTC, Jonathan M Davis wrote:
>> IMHO, the obvious split (and what I've wanted to do for some time) is
>>
>> std/datetime/common.d
>> std/datetime/interval.d
>> std/datetime/timepoint.d
>> std/datetime/timezone.d
>>
>> common would primarily have the free functions; interval would have
>> the three
>> interval types and their related range stuff; timepoint would have all
>> four of
>> the time point types (SysTime, DateTime, Date, and TimeOfDay); and
>> timezone
>> would have the time zone types.
>>
> If possible, I'd like to have a separate submodule for the
> StopWatch/Benchmarking stuff; that's probably more than 90% of what I
> use std.datetime for. Even if importing std.datetime.stopwatch ends up
> pulling most of the rest implicitly, I think the improvement to the
> documentation alone would be worthwhile.
>
> Cheers,
> Wyatt

std.benchmark, where art thou...

Andrei


More information about the Digitalmars-d mailing list