Better Phobos contribution guide

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Fri Mar 25 07:40:34 PDT 2016


On 25.03.2016 13:31, jmh530 wrote:
> On Friday, 25 March 2016 at 07:14:52 UTC, Seb wrote:
>> - dont add @nogc, @pure, @safe attributes yourself - let the compiler
>> infer it!
>
>> - avoid to use `auto` as return type
>
> But auto functions are a key way to infer attributes.

Which is why it was argued by some that return type and attribute 
inference should be orthogonal when the feature was originally proposed.


More information about the Digitalmars-d mailing list