June 10, 2011 [phobos] User define datetime format | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jose Armando Garcia | On 6/7/11 8:58 AM, Jose Armando Garcia wrote:
> On Tue, Jun 7, 2011 at 10:47 AM, Andrei Alexandrescu<andrei at erdani.com> wrote:
>> On 6/6/11 10:41 PM, Jose Armando Garcia wrote:
>>> Andrei, do you plan to submit your changes to formattedWrite which allow a range of arguments. I can simplify some of my code with such a feature ;)!
>>
>> Oops, I thought I did.
>>
>
> While on the subject what do you think of making formattedWrite's args lazy? This is quite useful in my case where I use positional parameters with a dynamic format string. It is very likely that in the common case most of those parameters wont need to be evaluated.
>
> It would be nice to also fix all the std.stdio write* function but I can get around that if only formattedWrite is fixed.
It's a good point, but I fear things may get bigger and slower. Could you please check whether adding lazy makes an impact on formattedWrite's size and speed?
Thanks,
Andrei
|
Copyright © 1999-2021 by the D Language Foundation