RetroMocha / obvious

Obvious is a clean architecture.
MIT License
264 stars 16 forks source link

Immutable Value Object With Validation #27

Closed RetroMocha closed 11 years ago

RetroMocha commented 11 years ago

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.

gabriel-dehan commented 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.

brianknapp commented 11 years ago

Ok, this is merged into master and will be pushed out in the next release (0.0.8)