Voting: std.logger

Johannes Pfau via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 1 10:05:03 PDT 2014


Am Fri, 01 Aug 2014 09:43:32 -0700
schrieb Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org>:

> On 8/1/14, 9:36 AM, Andrei Alexandrescu wrote:
> > Oh I hadn't realized that. Thanks! That strengthens my opinion that
> > more work is needed on the library before inclusion in
> > std.experimental.
> 
> To clarify: I'm very strongly opposed to a design that requires 
> rebuilding Phobos (or relying on different pre-built versions) for 
> different logging levels. That's just unacceptable. User code must be 
> able to set logging levels by just passing flags to their own builds.
> 
> Andrei
> 

It's kinda awkward how complicated the D solutions are compared to
C/C++ with the preprocessor. The only simple way in D seems to be using
string mixins, but these look ugly on the user side.


More information about the Digitalmars-d mailing list