Paweł Stradomski wrote:
W liście Rob Richards z dnia środa 04 lutego 2009:

If that's the route this is going to go, I'd rather be able to set an
anytype hint where the developer could possibly restrict this further
with a more specific type if they extend the class.

But that would break Liskov's principle...


I might agree if PHP were strictly an OO language, but it's not. Although SimpleXML is currently the only other extension that shares nodes with DOM, there are potential for others and not everything is OO (i.e. both xmlReader and writer have procedural interfaces).

Rob

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to