Blog post: What D got wrong
Neia Neutuladh
neia at ikeran.org
Thu Dec 13 21:02:14 UTC 2018
On Tuesday, 11 December 2018 at 10:45:39 UTC, Atila Neves wrote:
> I think there’s a general consensus that @safe, pure and
> immutable should be default.
I recall there was a decent chunk of people around D2.007 who
were pushing for const-by-default function parameters on the
grounds of if we're going to have this controversial system, we
may as well commit to it.
Also in the topic of defaults, you could potentially add inout as
a default for member functions. It's a lot more strict, but no
more so than immutable by default.
More information about the Digitalmars-d-announce
mailing list