Re: [logback-dev] on immutability

2009-02-24 Thread Ceki Gulcu
Joern Huxhorn wrote: Marking an object instance immutable conveys intent. You can build additional logic on top of the immutability hypothesis. If someone intentionally circumvents immutability, the ensuing problems are theirs, not ours. > That's exactly what I was trying to say in the foll

Re: [logback-dev] on immutability

2009-02-24 Thread Joern Huxhorn
Ceki Gulcu wrote: > Hello Joern, > > Joern Huxhorn wrote: > >> Ok, I *do* understand what immutability is *supposed* to be about but >> reality is quite different. In the two languages that I know best - Java >> and C++ - constness and immutability can be circumvented easily. > The fact that immuta

[logback-dev] on immutability

2009-02-24 Thread Ceki Gulcu
Hello Joern, Joern Huxhorn wrote: Ok, I *do* understand what immutability is *supposed* to be about but reality is quite different. In the two languages that I know best - Java and C++ - constness and immutability can be circumvented easily. The fact that immutability can be circumvented by t