Review of Jose Armando Garcia Sancio's std.log

so so at so.so
Mon Mar 5 17:39:20 PST 2012


On Tuesday, 6 March 2012 at 01:30:41 UTC, Steven Schveighoffer 
wrote:

> Except 'info', 'error', 'warning' are all common names, likely 
> to be a very attractive name for something that has nothing to 
> do with (or cares about) logging.  cout is not a common name or 
> even an english word, so it's unlikely someone has or wants to 
> create a cout member.
>
> Couple this with the fact that all of these are nouns -- likely 
> candidates for fields.
>
> Your argument has some merit, but I would add that my argument 
> is only against *common* global namespace names.
>
> Another solution besides using a namespace is to make the names 
> less common, like linfo instead of just info.

I have no objections against changing names. For example, instead 
of "info" i use "note" for my logger. Not 100% sure about "error" 
but i think "warning" also implies logging and don't see any use 
case where it would be used as a variable name.


More information about the Digitalmars-d mailing list