On 3/26/13 3:29 PM, Michael Wallner wrote:
I am concerned by the introduction of DateTimeImmutable extending DateTime
...
If interoperability was in mind, it will not be given, because every single API which has been written in the last seven years and has DateTime in it's signature is potentially broken. The code may and should be able to expect a modifiable instance of DateTime, which is no longer guaranteed.
...
In my opinion, the only way to "solve" this issue is through documentation, advocation, publication and providing DateTimeImmutable as a sibling to DateTime.
Much agreed. DateTimeImmutable is welcomed as a better design, but it is not a clean substitute for a DataTime object.
Steve Clay -- http://www.mrclay.org/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php