Blog post: What D got wrong

jmh530 john.michael.hall at gmail.com
Thu Dec 13 17:43:56 UTC 2018


On Thursday, 13 December 2018 at 17:07:58 UTC, H. S. Teoh wrote:
> [snip]
>
> Why not?  You can opt out. It's not as though you're forced to 
> use immutable everything and nothing but, like in a pure 
> functional language.  Just tack on @system or mutable when you 
> need to.
>


Mutable might be a little easier since it applies only to 
variables and member functions. If @safe is the default, 
including for main, then any @system block in your program and 
you also have to make main @trusted or @system too.


More information about the Digitalmars-d-announce mailing list