`@safe` by default. What about `@pure` and `immutable` by default?

Steven Schveighoffer schveiguy at gmail.com
Tue Apr 16 20:48:55 UTC 2019


On 4/16/19 3:42 AM, RazvanN wrote:

> As for `pure`, as long as we don't have the equivalent of `not pure`, I 
> don't see how it can be the default

Same arguments for immutable by default -- we don't have something that 
makes immutable data mutable.

I think @safe by default is a good idea. A fabulous idea. Please do it.

-Steve


More information about the Digitalmars-d mailing list