If you don't want something to change the internal state, don't export it. Regards, Kirk
On Jun 17, 2011, at 3:39 PM, Josh Berry wrote: > On Fri, Jun 17, 2011 at 8:58 AM, Kirk <kirk.pepperd...@gmail.com> wrote: >> I am on the (not so short) list of those that don't believe that >> immutability is the cure all for concurrency. > > How is the list for those that think it is a cure for easy to reason > about programs? There is some comfort knowing that a String will > never change value. It is nice to extend that comfort to other values > in the program. > > -- > You received this message because you are subscribed to the Google Groups > "The Java Posse" group. > To post to this group, send email to javaposse@googlegroups.com. > To unsubscribe from this group, send email to > javaposse+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/javaposse?hl=en. > -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to javaposse@googlegroups.com. To unsubscribe from this group, send email to javaposse+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.