Thread overview | |||||
---|---|---|---|---|---|
|
June 20, 2013 Time to split up std.datetime into a package? | ||||
---|---|---|---|---|
| ||||
Now that DIP37[1] is implemented (unless there are any bugs left with the implementation), is it time we split up std.datetime into its own package? As a first step I recommend we separate out unittests into a test module: std\datetime\core.d -- the actual implementation, name it whatever you want std\datetime\package.d -- package module std\datetime\test.d -- unittests That should cut down on line numbers significantly. [1] : http://wiki.dlang.org/DIP37 |
June 20, 2013 Re: Time to split up std.datetime into a package? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | On 2013-06-20 17:55, Andrej Mitrovic wrote: > As a first step I recommend we separate out unittests into a test module: > > std\datetime\core.d -- the actual implementation, name it whatever you want > std\datetime\package.d -- package module > std\datetime\test.d -- unittests Would it be logical to split the date and time functionality into separate modules? -- /Jacob Carlborg |
June 20, 2013 Re: Time to split up std.datetime into a package? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Thursday, June 20, 2013 21:34:05 Jacob Carlborg wrote:
> On 2013-06-20 17:55, Andrej Mitrovic wrote:
> > As a first step I recommend we separate out unittests into a test module:
> >
> > std\datetime\core.d -- the actual implementation, name it whatever you
> > want
> > std\datetime\package.d -- package module
> > std\datetime\test.d -- unittests
>
> Would it be logical to split the date and time functionality into separate modules?
No. The only type which only involves time is TimeOfDay. It might make sense to put it in its own module if each time point type is put in its own module, but it's a very small portion of the overall code, so splitting it off by itself doesn't do much to the module's size at all.
- Jonathan M Davis
|
Copyright © 1999-2021 by the D Language Foundation