Simplification of @trusted

Per Nordlöw per.nordlow at
Sat Jul 10 21:30:54 UTC 2021

On Wednesday, 16 June 2021 at 11:38:54 UTC, RazvanN wrote:
> What do you think?
> Cheers,
> RazvanN
> [1]
> [2]

Yes, please. Very much. And without introducing a new scope like 
for `static if`, please.

Furthermore, could we have also add an even shorter syntax for 
@trusted function calls? For instance,

     @trusted foo(...);


If so, that might be an incentive for Walter Bright to reconsider 
his prerequisite of enforcing extern(C) to be `@trusted` in his 
safe-by-default DIP. And instead slap @trusted in front of the 
calls to extern(C) being called in @safe contexts.

More information about the Digitalmars-d mailing list