Re: RFC: Comparable interface

From: Date: Fri, 01 Oct 2010 08:38:19 +0000
Subject: Re: RFC: Comparable interface
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-49835@lists.php.net to get a copy of this message
On 30 September 2010 21:33, Adam Harvey <aharvey@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

« previous php.internals (#49835) next »