auto: useful, annoying or bad practice?
Dgame
r.schuett.1987 at gmail.com
Wed May 2 06:29:48 UTC 2018
On Wednesday, 2 May 2018 at 00:01:42 UTC, Nick Sabalausky wrote:
> Now, all that said, using auto for a function signature's
> return type shouldn't usually be done, except in very careful,
> specific "voldemort type" kinds of situations (and even then, I
> dont see a real big point).
I do it all the time because of attribute inference. D has way to
many attributes, so I'm willing to automatically let the Compiler
interfere which are appropriate, he knows it better anyway.
More information about the Digitalmars-d
mailing list