auto in library functions
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Sun Dec 23 14:49:15 PST 2012
On 12/23/12 4:54 PM, Benjamin Thaut wrote:
> I just created my first pull request for druntime and there where
> multiple commonets to _not_ use auto. I don't quite understand why it
> shouldn't be used in library functions. If it should not be used why is
> it in the language in the first place?
Is this it?
https://github.com/D-Programming-Language/druntime/pull/368
As a general rule, there should be justification for cases where auto is
not to be used. Auto should be reached for by default.
Andrei
More information about the Digitalmars-d
mailing list