Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49831 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41728 invoked from network); 30 Sep 2010 22:26:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Sep 2010 22:26:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.153 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.153 smtp153.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.153] ([67.192.241.153:56590] helo=smtp153.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 11/F3-18648-4AE05AC4 for ; Thu, 30 Sep 2010 18:26:45 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp15.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id 0339F3001DA; Thu, 30 Sep 2010 18:26:42 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp15.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id A5FD2300174; Thu, 30 Sep 2010 18:26:41 -0400 (EDT) Message-ID: <4CA50EA1.603@sugarcrm.com> Date: Thu, 30 Sep 2010 15:26:41 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: Pierre Joye CC: Adam Harvey , PHP internals References: <4CA4EF7D.9070205@sugarcrm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Expose compare_function() to userspace From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > Can we make it an operator-like (is_a for example) instead? It could > be more efficient. Operator has a downside that you can't pass it as a parameter. We could have something like <=> (spaceship operator!) or even cmp though :) -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227