What is Invariant Good For?

Peter C. Chapin pcc482719 at gmail.com
Sat Aug 2 11:07:34 PDT 2008


Walter Bright wrote:

> http://www.reddit.com/r/programming/comments/6ui1q/d_what_is_invariant_good_for/

For what it's worth, I agree with some of the posts on the article 
itself that "immutable" would be a better word to describe this concept 
than "invariant." I've done some functional programming and I 
immediately understand what immutable means (and why it is good). With 
invariant I had to read about it first. The word invariant makes me 
think of class invariants and loop invariants... a somewhat different 
concept.

Peter



More information about the Digitalmars-d mailing list