22 Sep 2011, 1:57 p.m.
Some Thoughts on PHP's DateTime, Object Mutability and an Alternative Implementation
I'm beginning think that while the introduction of PHP's newish DateTime
object is very welcome, its implementation is one of the big missed opportunities in the language. This is because the decision was taken to make it mutable. In essence, DateTime has been implemented as an Entity rather than a Value Object.
Posted by Simon in PHP
|
3 comments