Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91923 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65777 invoked from network); 24 Mar 2016 19:42:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Mar 2016 19:42:43 -0000 Authentication-Results: pb1.pair.com header.from=mtkocak@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=mtkocak@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.44 as permitted sender) X-PHP-List-Original-Sender: mtkocak@gmail.com X-Host-Fingerprint: 74.125.82.44 mail-wm0-f44.google.com Received: from [74.125.82.44] ([74.125.82.44:38021] helo=mail-wm0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3A/89-15440-23344F65 for ; Thu, 24 Mar 2016 14:42:42 -0500 Received: by mail-wm0-f44.google.com with SMTP id l68so80604475wml.1 for ; Thu, 24 Mar 2016 12:42:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=jpN033J2cv/7j352KEe9slaNqZuFtwLpZmzPt+9awlc=; b=yyPBmXkUmQdBjkTNf3L9Qm7ZB+ewW0cs3m5OsBsVM7s237NdjDSb4Ivna/caH/GJzN OQsPB8xdH6FycWb+uxddVOzszAmJNjqDo7bMktZJSD0qqi7hXE5EwKwqVRstmcqKY26b Yiwoc6AZhDsT01vtkBz4Zt0UCGr1zq+XUHsfEJTzXtyYYzODzL5q2nXPOOO00j07JAiE wRm5RxJiVj70EU0GOdRIs0r65D0qmCjIf4yF5j/qOJVRHEABzTgz32SIapdk6LnaE473 szHpQnL6HJvnzqCEGjo1ohb5ppnKZBN518dHjx0qIF4aOiO0Z8WnYZTvniCLIYD17Mcc 0EhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=jpN033J2cv/7j352KEe9slaNqZuFtwLpZmzPt+9awlc=; b=ejzjlgUv/qRK1dpehR/n190/IaCzeFAqwNApWUuBYvpSkLRFAvsUkHyySiso1bRIDq mRT5DxuNTf66nCKwXjdnCcEvphU7SLXy7teAIg9Z4Bcedu6KTLVjQaGExtPXd+Winp8T AQ/faAuG4+7v9D+XpMSWIkKVwaiAVoq0dftSZScbhRF/7np5CAoD9aL1LKyWYaznIca1 StPu3fPOtua6aYU7GmPIvyyCeuR2NUz+YlRdyhCfct/tAyxoyKkOiXQMFeRAGMcvYMav 3no938OOZ1NWTPHEB6Ufqg7G3YHeUcxyChh6Nukj/hH6/ebRJ6nsZ4IkKnE64tgrNa9N GYow== X-Gm-Message-State: AD7BkJLTG+4jjjjV1AbvHY2Aoa02jigf3aElX/E92WpvIqVhG2DeQsKUbDfWL5VkRA+9tGT5TEPBCs0VxDaY6A== MIME-Version: 1.0 X-Received: by 10.28.150.4 with SMTP id y4mr11891057wmd.43.1458848559166; Thu, 24 Mar 2016 12:42:39 -0700 (PDT) Sender: mtkocak@gmail.com Received: by 10.194.17.169 with HTTP; Thu, 24 Mar 2016 12:42:39 -0700 (PDT) In-Reply-To: References: Date: Thu, 24 Mar 2016 20:42:39 +0100 X-Google-Sender-Auth: LeU92t99cem-PfD9Ud7tRh6er5k Message-ID: To: Nikita Popov Cc: Sara Golemon , "Colin O'Dell" , PHP internals Content-Type: multipart/alternative; boundary=001a114b3e3a267ee9052ed0a6b3 Subject: Re: [PHP-DEV] Add spaceship assignment operator From: mtkocak@mtkocak.net (Mutlu Kocak) --001a114b3e3a267ee9052ed0a6b3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable he is trolling :) On Thursday, 24 March 2016, Nikita Popov wrote: > On Thu, Mar 24, 2016 at 8:05 PM, Sara Golemon > wrote: > > > On Thu, Mar 24, 2016 at 11:50 AM, Colin O'Dell > > > wrote: > > > Would your proposal also allow !=3D=3D=3D=3D to work? > > > > > I think you means !=3D=3D=3D, which is "not-identical assignment" (!=3D= =3D =3D) > > > > !=3D=3D=3D=3D is just *CRAZY TALK* > > > > We shouldn't dismiss such things out of hand, Sara. Consider the followin= g > argument: > > There is a binary !=3D=3D operator. The compound assignment version of it= is > !=3D=3D=3D. But that again is a binary operator! So there should be a != =3D=3D=3D=3D > compound assignment operator as well. By induction over the natural numbe= rs > it follows that !=3D=3D followed by an arbitrary number of =3Ds should be= a valid > compound assignment operator. > > However, when considering the expansion, we see: > > $a !=3D=3D=3D=3D $b; > // same as > $a =3D $a !=3D=3D=3D $b; > // same as > $a =3D $a =3D $a !=3D=3D $b; > > It is now evident that $a !=3D=3D=3D=3D $b (or any additional number of = =3Ds) has the > same meaning as $a !=3D=3D=3D $b. A difference could only arise if the le= ft-hand > side is an object implementing __set or ArrayAccess, in which case !=3D= =3D=3D=3D > would cause an additional call to __set / offsetSet. > > Given that !=3D=3D=3D=3D and !=3D=3D=3D would be, apart from the edge-cas= e of overloaded > objects, identical, I must concur with your original judgement that only > supporting !=3D=3D=3D is sufficient. > > Thanks, > Nikita > --=20 Mutlu Ko=C3=A7ak | Computer Scientist & Engineer Mobile: +420775259871 Parizksa 5, Praha 1 Prague Czech Republic Personal Website: http://www.mtkocak.com --001a114b3e3a267ee9052ed0a6b3--