Pure functions in D

Jacob Carlborg doobnet at gmail.com
Mon Sep 22 08:09:21 PDT 2008


Brian Palmer wrote:
> bearophile Wrote:
> 
>>> (Invariant means immutable.)<
>> This specification, near the top of the article, that tells that a word means something else is a WARNING SIGN large as a wall that tells that that name is wrong and it has to change. Now I think D2 will sooner of later have to use the "immutable" word instead, as Python and Java communities too use.
> 
> That's exactly what went through my head when I saw this line of the article and I agree 100%, invariant needs to change to immutable in D2 before it becomes too late.

I completely agree. In every document/article I've read about the const 
system in D and where it says "invariant" it's explained to mean 
immutable, so why not just change the keyword.



More information about the Digitalmars-d mailing list