Implementing std.log

so so at so.so
Sun May 22 16:17:22 PDT 2011


On Sun, 22 May 2011 21:38:26 +0300, Lars T. Kyllingstad  
<public at kyllingen.nospamnet> wrote:

> On Sun, 15 May 2011 17:15:38 +0200, Jacob Carlborg wrote:
>
>> Why does the user have to manually initialize the library? Why not use a
>> static constructor or lazy initialization?
>>
>> Actually I don't like it at all, that  the logging library is configured
>> via command line options. Seems very odd to me in the first place. That
>> is something that should be handled by the application that uses std.log
>> not the library itself. The library should be configurable via regular
>> methods, like "log.verbose = true". You could provide a shortcut that
>> configures the library via the command line but that should be optional
>> and not the default.
>
> I agree with this.
>
> -Lars

I overall like the library, thanks for the work!

Just a question, not only about std.log but upcoming projects as well.
Is adopting to a library standard which was originally designed for  
another language any good?
I think the library designers are influenced mostly by the capabilities of  
a language.


More information about the Digitalmars-d mailing list