Simplification of @trusted

Max Samukha maxsamukha at gmail.com
Sun Jun 20 11:08:51 UTC 2021


On Saturday, 19 June 2021 at 21:19:29 UTC, Sönke Ludwig wrote:

> The code that calls it *is* the `@safe` wrapper ;)  (more or 
> less, it does a little bit more than that - but adding another 
> wrapper in-between wouldn't really add anything apart from 
> complexity, because the function is only used in a single place)

I agree. The whole point of having free variables is to avoid 
useless explicit interfaces for local blocks of code. If they ban 
trusted lambdas/blocks, the next logical step is to ban free 
variables overall.


More information about the Digitalmars-d mailing list