Origins of the D Programming Language
Kagamin
spam at here.lot
Sat Dec 1 09:52:50 UTC 2018
On Saturday, 1 December 2018 at 08:22:57 UTC, Paolo Invernizzi
wrote:
>> I also like the history of immutable btw: remember when it was
>> called "invariant" and why it changed?
>
> It was renamed just for clarity, when someone got confused
> about it, the explanation was always something like "it's
> simple an immutable value, like ROM"
AFAIK, it was renamed for consistency with unittests, otherwise
invariant blocks required braces: invariant(){ ... } or it would
be ambiguous with block attribute.
More information about the Digitalmars-d
mailing list