Review: std.logger
via Digitalmars-d
digitalmars-d at puremagic.com
Sun Jul 13 08:05:40 PDT 2014
On Sunday, 13 July 2014 at 12:12:46 UTC, Dicebot wrote:
> On Sunday, 13 July 2014 at 11:57:26 UTC, Robert burner Schadek
> wrote:
>>> - The functions error(), info(), fatal(), etc. don't follow
>>> the usual rule for functions to start with a verb. The
>>> question is if saving three characters over logError() is
>>> worth making the code more ambiguous for the outside reader
>>> (e.g. "does error() throw an exception? or set some internal
>>> error state?" "does fatal() terminate the process?")
>>
>> if I change it back, people will argue that that is redundant
>> and unintuitive. Than I will change it back again and the
>> discussion starts again.
>
> I think those functions are used so often that can be worth an
> exception.
+1
And it has precursors in other logging APIs.
More information about the Digitalmars-d
mailing list