Review: std.logger

Robert burner Schadek via Digitalmars-d digitalmars-d at puremagic.com
Sun Jul 13 07:59:32 PDT 2014


On Sunday, 13 July 2014 at 14:53:20 UTC, Dragos Carp wrote:
>> write infof("%b is the answer", true); and it works write now
>
> This is clear... the argument was against "info" (without format
> specifier).
>
then I did not get it.
>
>> there also good points for it.
>> * people expect it after using write
>
> This is a different module. Btw. std.file.write looks completely
> different :)
>
>> * sometimes it is less work typing
>
> With more work, if you later need to internationalize your
> application.
std.string.translate and map are already in place.
>
>> * there is no reason to limit it arbitrarily
>
> Simple is better than complex.
it is hardly complex


More information about the Digitalmars-d mailing list