On 12 Okt., 01:22, Kevin Wright <[email protected]> wrote: > Immutability is simple. The Ace of spades is immutable, it will always > continue to be the Ace of Spades into eternity.
But when did it begin being the ace of spades? Unless all fields keep their initial value any object changes; the ace of spades began its life as the null of null. No a big deal because nobody can observe this state, however, once one gets into initializing immutable object graphs things get very hairy very quickly: Immutability is not that simple after all. This issue also neatly demonstrates why Option/Maybe won't magically get rid of null. With kind regards Ben -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
