Voting: std.logger

via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 30 10:44:09 PDT 2014


On Wednesday, 30 July 2014 at 14:59:38 UTC, Andrei Alexandrescu 
wrote:
> On 7/30/14, 2:22 AM, "Marc Schütz" <schuetzm at gmx.net>" wrote:
>> On Tuesday, 29 July 2014 at 23:09:28 UTC, Robert burner 
>> Schadek wrote:
>>> On Tuesday, 29 July 2014 at 06:09:25 UTC, Andrei Alexandrescu 
>>> wrote:
>>>> 4. Replace defaultLogger with theLog. "Logger" is a word, 
>>>> but one
>>>> that means "lumberjack" so it doesn't have the appropriate 
>>>> semantics.
>>>> The use is generally acceptable as a nice play on words and 
>>>> as a
>>>> disambiguator between the verb "to log" and the noun "log". 
>>>> When we
>>>> actually want to talk about the current log in an 
>>>> application, we
>>>> should, however, call it "the log". This is negotiable.
>>>
>>> I really don't care how a global Logger instance is called. 
>>> Anyone
>>> else has an opinion on this? Otherwise Andrei wins.
>>
>> I don't see anything wrong with "logger". A "driver" is 
>> something that
>> drives (a device), a "logger" is something that logs.
>
> Such logic doesn't apply to vocabularies. Is an "irater" 
> someone who irates, a "messer" someone who creates a mess etc?

Yes. It's called "derivation" in linguistics. It works in this 
case, because "-er" is a semi-productive suffix, which produces 
new nouns (called "nomina agentis") that refer to the "do-er", 
i.e. either a person, like the other meaning of "logger", or a 
tool, e.g. "box cutter". It is semi-productive, because as you 
noted, some derivations indeed sound odd and are almost never 
used.

But this is getting way off-topic. My main point is that it's 
easy to understand, and it has lots of precedence in other 
software.


More information about the Digitalmars-d mailing list