Blog post: What D got wrong

Dgame r.schuett.1987 at gmail.com
Thu Dec 20 07:45:37 UTC 2018


On Thursday, 13 December 2018 at 18:29:39 UTC, Adam D. Ruppe 
wrote:
> The attribute spam is almost longer than the function itself.

I often wished for something like

----
module foo.bar;

default(@safe, pure);

function foo() { } // is annotated with @safe & pure

@deny(pure) // or pure(false) as I suggested a long time ago
function bar() { } // is annotated only with @safe
----

That would IMO lighten the burden.


More information about the Digitalmars-d-announce mailing list