Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19823 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44512 invoked by uid 1010); 29 Oct 2005 20:41:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 44497 invoked from network); 29 Oct 2005 20:41:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Oct 2005 20:41:43 -0000 X-Host-Fingerprint: 83.149.123.177 mail.aaaa.ws Linux 2.4/2.6 Received: from ([83.149.123.177:49436] helo=mail.aaaa.ws) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 1F/BA-02082-78ED3634 for ; Sat, 29 Oct 2005 16:41:43 -0400 Received: from cpc2-sout5-5-0-cust53.sot3.cable.ntl.com ([81.110.110.53] helo=[192.168.1.103]) by mail.aaaa.ws with esmtpa (Exim 4.50) id 1EVxWD-0002R9-6I; Sat, 29 Oct 2005 22:41:37 +0200 To: James Crumpton Cc: Greg Beaver , internals@lists.php.net In-Reply-To: <4363DB35.7080808@safesearching.com> References: <4362C5F4.8090004@safesearching.com> <4e36d31d0510281847m3f54c70dy8b2a0679fa3c6cec@mail.gmail.com> <4362DFAB.1090701@safesearching.com> <43630958.4060406@php.net> <4363DB35.7080808@safesearching.com> Content-Type: text/plain Date: Sat, 29 Oct 2005 21:41:36 +0100 Message-ID: <1130618496.29279.6.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] what happened to that new isset() like language From: matthew@teh.ath.cx ("Matthew C. Kavanagh") However, in terms of precedents, there are the combined assignment operators such as &=, +=, .=, and so on. They would suggest that $a ||= $b; should be equivalent to $a = $a || $b; So I don't think ||= in the suggested usage is intuitive. And adding strange automagical meanings to $a = $a || $b || $c; (and so forth) shouldn't even be discussed by sane people ;) On Sat, 2005-10-29 at 13:27 -0700, James Crumpton wrote: > Regardless of what can be said about changing the behavior of '||', the > same isn't true for '||=', as it has no precedence in PHP.