Origins of the D Programming Language

Paolo Invernizzi paolo.invernizzi at
Sat Dec 1 11:04:00 UTC 2018

On Saturday, 1 December 2018 at 09:52:50 UTC, Kagamin wrote:
> 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.

Yes, invariant block used to have braces...
Or at least I think to remember a big code session devoted to 
"delete the invariant braces" in the codebase...

Oh well...

More information about the Digitalmars-d mailing list