Review: std.logger

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Sun Jul 13 05:12:45 PDT 2014


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.


More information about the Digitalmars-d mailing list