-preview=safer for D

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Sun Dec 15 01:59:23 UTC 2024


On 14/12/2024 9:46 PM, Walter Bright wrote:
> Now that this has been merged into master, what are your reactions?

My general view is that it could be used for migrating people to 
``@safe`` by default. Would require a couple of editions to do this.

If we are not planning how to do this, I can understand the negative 
reactions to it.

If we are wrong about it having migratory benefits, we can always 
disable it and no modules in a edition would break. So I'm not seeing a 
down side to trying it.

If we are indeed wrong, the fact that it doesn't have an attribute (yes 
it could be in ``core.attribute``!) would negate any benefit it has of 
helping people to transition since it will not be selective.



More information about the Digitalmars-d mailing list