std.logger

Robert Schadek realburner at gmx.de
Thu Aug 22 09:02:46 PDT 2013


On 08/22/2013 05:51 PM, Craig Dillabaugh wrote:
> Do you really find the three extra characters a big problem.
>
> Log() vs. logLog()  //OK, that is kind of ugly.
> Info() vs logInfo()
> Warning() vs logWarning()
> Error() vs logError()
>
> Its only three extra characters and they are all in the sweet
> spot on my QWERTY keyboard :o)
>
> I guess my concern would be that if you want to use camelCase and
> start with a lower case letter, there are not a tonne of options.

You are properly right, but ultimately I would like to write log(),
warning(), ... but that did
not fly last time. log!Warning() would also be fine but that leads to
other problems.
Anyway, changing to lower, logLog or something else isn't really a
problem IMO when
a consensus has been found.


More information about the Digitalmars-d mailing list