Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67336 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68112 invoked from network); 7 May 2013 16:28:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 May 2013 16:28:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.180 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.214.180 mail-ob0-f180.google.com Received: from [209.85.214.180] ([209.85.214.180:33860] helo=mail-ob0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3D/D2-54258-E9B29815 for ; Tue, 07 May 2013 12:28:15 -0400 Received: by mail-ob0-f180.google.com with SMTP id uk5so713107obc.39 for ; Tue, 07 May 2013 09:28:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=98lqp9ztJELwAmNf9LsbYO6dqf2YKZfpWxuXhRJT2TE=; b=BfuFNcl8AeKG8zwVGy0d/xUWnSKxzOiHu3Bt2FPB6UpNgD0O4oZfUCaESAZ4COIg98 6JY1iU4i1jova6dUq15Lg0f34k1QaW4jGjPrxNfA1K8hYXtIuksY9YgA2sGoC1gSYhuS V/JEjjPMvpdkXy1A0ccnB4wYeWUpf/w0Ni0onh/poyUUPbar3tX/QAkKRHIYmyse26Oi UfC8f9/IU8gThx5yMvF0Cfz1STpmlsN3PuGbLqX9BqgcF5I2weyFh0TdhCLjB2hFeb3p rzfOrAvhnOCHj2T6S/O9VE1Hpd20HOJI1AbfrIvmBQFIcZJchkcT3drXMuZ+VKnvW3y8 7F0w== MIME-Version: 1.0 X-Received: by 10.60.42.197 with SMTP id q5mr767205oel.37.1367944092430; Tue, 07 May 2013 09:28:12 -0700 (PDT) Received: by 10.76.156.193 with HTTP; Tue, 7 May 2013 09:28:12 -0700 (PDT) In-Reply-To: References: Date: Tue, 7 May 2013 10:28:12 -0600 Message-ID: To: Thomas Anderson Cc: PHP internals Content-Type: multipart/alternative; boundary=001a11c20dceb3b64a04dc234d5e Subject: Re: [PHP-DEV] idea: implement a Comparable interface From: morrison.levi@gmail.com (Levi Morrison) --001a11c20dceb3b64a04dc234d5e Content-Type: text/plain; charset=ISO-8859-1 > It'd be nice if, when doing $objA > $objB, that that'd invoke > $objA->__compareTo($objB) or something, much like Java's Comparable > interface. > There is nothing stopping you from creating this in user-land. Also, I have spent a lot of time writing libraries in PHP and I now believe that this approach is not the best solution anyway. --001a11c20dceb3b64a04dc234d5e--