Mitigating the attribute proliferation - attribute inference for functions

Daniel N via Digitalmars-d digitalmars-d at puremagic.com
Sun Apr 12 02:42:18 PDT 2015


On Saturday, 11 April 2015 at 21:47:20 UTC, Martin Nowak wrote:
> Sorry to open yet another topic.
>
> I'm repeatedly finding myself in situations where I write 
> functions like
> this.
>
>     private @property bool empty() const @safe pure nothrow 
> @nogc
>     {
>         return impl is null || !impl.count;
>     }

FYI, I wrote an enhancement request for this already. In case the 
discussion reaches a conclusion this time around, you might want 
to update the status:

https://issues.dlang.org/show_bug.cgi?id=13567



More information about the Digitalmars-d mailing list