Simplification of @trusted
jmh530
john.michael.hall at gmail.com
Wed Jun 16 21:47:55 UTC 2021
On Wednesday, 16 June 2021 at 21:22:32 UTC, Walter Bright wrote:
> [snip]
>> `@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.
This is a better argument against @trusted blocks within @safe
blocks than it is against @system blocks within @trusted code.
More information about the Digitalmars-d
mailing list