`@safe` by default. What about `@pure` and `immutable` by default?
Mike Franklin
slavo5150 at yahoo.com
Tue Apr 16 03:59:38 UTC 2019
I think I may have found a simple migration path to @safe by
default. I'm still thinking it through, but if I can justify it,
I will write a DIP.
`@safe` by default is a no-brainer in my opinion, but `pure` and
`immutable` by default are less obvious. With the aforementioned
potential DIP, I have an opportunity to correct purity and
mutability defaults as well...but is that something we want to do?
Can anyone save me some trouble and articulate why it would be
bad to have `pure` and/or `immutable` by default?
Thanks,
Mike
More information about the Digitalmars-d
mailing list