Voting: std.logger
via Digitalmars-d
digitalmars-d at puremagic.com
Mon Sep 1 09:45:27 PDT 2014
On Monday, 1 September 2014 at 16:30:46 UTC, Dicebot wrote:
> purity. This may be or may not be an issue but is definitely
> goes out of the scope of this Phobos proposal. If you have any
[…]
> Current implementations use basic std.stdio facilities and
> those flush upon writing a newline symbol -> flush happens
> after each log call. More efficient buffered implementation can
> be provided later, this shouldn't affect the API.
[…]
> Unreliable, not KISS. I think it is a bad idea.
If the standard library does not provide the following from the
get go:
1. general usefulness
2. performance
3. KISS in terms of interface (not in language semantics)
then people will be better off rolling their own. Creating a
simple logger is not difficult, the challenge is in creating a
performant, generally useful one with legible syntax and full CT
type safety.
More information about the Digitalmars-d
mailing list