[phobos] User define datetime format
Andrei Alexandrescu
andrei at erdani.com
Fri Jun 10 07:39:12 PDT 2011
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
More information about the phobos
mailing list