Phobos examples and auto

Trass3r un at known.com
Sun Nov 6 17:56:35 PST 2011


> There's a growing tendency in Phobos documentation to use auto.
>
> auto now = Clock.currTime();

This is not restricted to documentation.
auto makes people lazy and they tend to (ab)use it everywhere in code.
It was invented and intended for things like C++'s iterators where the  
resulting type is clear but tedious to write down, not for saving 2  
keystrokes.


More information about the Digitalmars-d mailing list