On 30 September 2010 21:33, Adam Harvey <ahar...@php.net> wrote: > I've just written an RFC (with a patch against trunk) to implement a > Comparable interface similar to that in Java — in effect, allowing > object instances to be compared with semantics defined in userspace. > This is admittedly at the lower end of RFC-worthy proposals, but it's > a good system, and I'd like to see it used a little more. Plus, it's > good practice for the more interesting stuff to come. :)
I've updated the RFC with a fresh patch that doesn't involve SPL at all and attempted to incorporate some of the questions and answers so far into the RFC. I've also added a section for concerns with the RFC; I've attempted to distil the concerns I've seen so far, but please feel free to edit that list if specific concerns are misrepresented or unrepresented. Links: RFC: http://wiki.php.net/rfc/comparable Patch v2: http://www.adamharvey.name/patches/comparable-v2.diff.txt Thanks, Adam -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php