About the Expressiveness of D
Brad Anderson
eco at gnuk.net
Wed Apr 3 10:59:37 PDT 2013
On Wednesday, 3 April 2013 at 17:08:57 UTC, Andrei Alexandrescu
wrote:
> On 4/3/13 11:55 AM, Peter Alexander wrote:
>> On Wednesday, 3 April 2013 at 02:44:15 UTC, Andrei
>> Alexandrescu wrote:
>>> If we did datetime all over again, I'd give a budget of 2000
>>> lines for
>>> all functionality. I bet the solution would be better.
>>
>> I think you are massively underestimating the complexity and
>> subtleties
>> of dates and time.
>
> May as well. I recall before I approved std.datetime I looked
> at the implementation sizes of similar functionality in other
> languages; they were all rather bulky, but std.datetime was at
> the high end of the range.
>
Boost datetime is 27k. Just the headers comes to 17k. A 2k
budget for a date time library is unreasonable unless you don't
want anyone using D for anything serious involving dates and
times. They are complex and require a lot of code to get right.
Perhaps 34k is too large but 2k is laughable.
More information about the Digitalmars-d
mailing list