Closed RetroMocha closed 11 years ago
+1 As we discussed, it would be great for entities to inherit (or mix in) from an immutable Obvious::Entity class and validation.
Ok, this is merged into master and will be pushed out in the next release (0.0.8)
Much of the approach with building entities in Obvious is immutable in the first place, so it makes a lot of sense to me to take a value object concept and add on optional validation and you pretty much have the entity concept that we already are using, but with stronger guarantees about immutability.