Would it be possible to remove the Subject and Observer interfaces or at least delay them until a later release?

The problem with the Observer interface is that any class implementing it is only capable of receiving one kind of notification (update) and there is no capability to send any additional information.

The problem with the Subject interface is that it can also only support one kind of observer.

Together these are harsh restrictions that would limit the use of these interfaces to only the most trivial applications. These interfaces are fine as a textbook example of the observer pattern, but I don't see them as generally useful enough to have as part of the language.

Regards,

Jeff Moore

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

Reply via email to