Re: A value object *must be* immutable?

Dan Haywood <[email protected]>
Newsgroups gmane.comp.programming.domain-driven-design
Message-ID <CALJOYLF+bGL-jU3TeKMhMUJ5i6SCpinHJv2dZB0OhWZnuP1qUA@mail.gmail.com>
+1.

But you might want to consider introducing a Mutable Companion [1]   (cf
String and StringBuilder)

Dan

[1]
http://www.two-sdg.demon.co.uk/curbralan/papers/vikingplop/TheGoodTheBadAndTheKoyaanisqatsi.pdf


On 30 April 2013 21:54, Raoul Duke <[email protected]> wrote:

>
>
> http://c2.com/cgi/wiki?ValueObjectsShouldBeImmutable
>
>
> On Tue, Apr 30, 2013 at 1:52 PM, Fabrício Cabral <[email protected]>wrote:
>
>>
>>
>> Hi everybody!
>>
>> Conceptually a value object *must be* immutable? Could
>> I have a mutable value object? It makes senses?
>>
>> Thanks in advance.
>>
>> --
>> --fx
>>
>>
>>
>
>
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.