[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: the benefits of immutability



Pascal Costanza wrote:

 > An immutable class modifier could at least help to make the
 > intentions clear, and provide some guarantees. Furthermore, the
 > compiler and/or runtime system could exploit that declaration. Any
 > violation would be regarded as a programming error that can, for
 > example, be caught by proper unit testing.

Makes sense.  Thanks for clarifying.