Simplification of @trusted

Timon Gehr timon.gehr at gmx.ch
Wed Jun 16 21:25:30 UTC 2021


On 16.06.21 23:22, Walter Bright wrote:
> 
>> `@trusted` *should* probably not even be available for functions (of 
>> course it is not a desirable breaking change to disallow that now, 
>> though).
> 
> The idea is to encourage programmers to think about organizing code so 
> that there are clear separations between safe and system code. 
> Interleaving the two on a line-by-line basis defeats the purpose.

Yes. This.


More information about the Digitalmars-d mailing list