> On Nov 19, 2016, at 13:22, Michał Brzuchalski <michal.brzuchal...@gmail.com> > wrote: > > In Event Sourced application Aggregates and Entities are mutable but > pushing Events for later write but speaking of ValueObject which ideally > could be immutable classes there is must on immutability and AFAIK there is > no need for identity for them.
Sure; a Value Object probably needs to be Immutable. But: an Immutable need not be a Value Object. As such, it sounds to me like your concerns in this thread apply to Value Objects, not Immutables per se. -- Paul M. Jones pmjone...@gmail.com http://paul-m-jones.com Modernizing Legacy Applications in PHP https://leanpub.com/mlaphp Solving the N+1 Problem in PHP https://leanpub.com/sn1php -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php