Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81005 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88243 invoked from network); 23 Jan 2015 00:17:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jan 2015 00:17:18 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.54 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.216.54 mail-qa0-f54.google.com Received: from [209.85.216.54] ([209.85.216.54:38413] helo=mail-qa0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A3/55-61273-D0391C45 for ; Thu, 22 Jan 2015 19:17:17 -0500 Received: by mail-qa0-f54.google.com with SMTP id w8so3742112qac.13 for ; Thu, 22 Jan 2015 16:17:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=1zu+UJhMjzZ1A5JB1kxoJHLDhxO4IIhTw7aRJPRJBdM=; b=klRubbhroR7qX9DvwYolW5jugisk4hJr8lvEZZFeGsXVyCP2tJG+Y73hpJJc2qzMno b3TpmsBaJqh+HcPWdROV+vER6ifwmMsN+23vME2joU+R9I2Qi6EA2Ntk0F5zRe5iwAAy mk9rHqXGX8HQWgUN32feTkZevkkLTE1k8KfEaXlAkfIjk31s9TC/YnSaaztQBJS7lvbv YgrXDVnaNdXaCdQpcFj7+IHQUrtTfbwNdQcAIbYHWrx9ELavSoOPQh657HImpl5uVh3W tZJKqeU8uA8CIQk9XFPvzhe9Lkj+kyWjEFV5X/zGg/FrsqN8b0J2unK+LbEVsw89ZICw ibHw== X-Received: by 10.140.97.203 with SMTP id m69mr7978602qge.39.1421972234330; Thu, 22 Jan 2015 16:17:14 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.93.70 with HTTP; Thu, 22 Jan 2015 16:16:34 -0800 (PST) In-Reply-To: <54C17E2B.80708@garfieldtech.com> References: <53F8A1FF-C809-4DDF-9C6F-6916C3E4F044@ajf.me> <3251D635-D97C-4738-B537-935A6CC21E19@ajf.me> <54C17E2B.80708@garfieldtech.com> Date: Fri, 23 Jan 2015 09:16:34 +0900 X-Google-Sender-Auth: HEXSeGleKUiWZn7YsJWmuIYdnDU Message-ID: To: Larry Garfield Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a113a2aa2e869bd050d46b539 Subject: Re: [PHP-DEV] [RFC] Combined Comparison (Spaceship) Operator From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a113a2aa2e869bd050d46b539 Content-Type: text/plain; charset=UTF-8 Hi all, On Fri, Jan 23, 2015 at 7:48 AM, Larry Garfield wrote: > The examples say nothing about mixing types, though. Eg, what would these > return: > > return 0 <=> "0" > > return "" <=> 0 > > return 1 <=> [1, 2, 3] > > Ignoring object property names and going by the order of the property > definition seems like asking for trouble, too. > It should be the same as '===', IMO. Only the same type should return 0. Object has the same id should return 0. Arrays would be matter of discussion. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a113a2aa2e869bd050d46b539--