Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62496 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85848 invoked from network); 25 Aug 2012 18:25:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2012 18:25:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=krebs.seb@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=krebs.seb@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.42 as permitted sender) X-PHP-List-Original-Sender: krebs.seb@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bk0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:52063] helo=mail-bk0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CE/AD-06857-F7819305 for ; Sat, 25 Aug 2012 14:25:04 -0400 Received: by bkcjm19 with SMTP id jm19so891490bkc.29 for ; Sat, 25 Aug 2012 11:25:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=HPXr5SwcmLdsjm+l1NpLkFk1LETd3Uj2n4PVxhqd1c4=; b=bKxbTDZpXZAlCpBk6pFinvxB1GVXmO+wPrjVEDSvQWDBCMMK9xxLltJrDmWUu1vYZ9 nwZYjWZGbqF2zljaU1aMBw6AuZq/oyT8fy33OuLk7/TLBoZsA+O29jME6xgRWYbXUi0E e8YltNwNDp3N7IgXI7QglSYC7Mk0LGEXSvuGZQxYppzpbLZ97mbOhIV1IvZz0634v4Uz 9C61a6PZdRv4Q93Fu+fMoYmdKNPoxKlkn3JXYTeSt2iK3nv9dD8NiHy6+/ukU80r8Nse fzxcu9L5yhOq/2d3PHr/IQot55QU3YB2rrfdSbL2c9v/QkEVh9rIBTOf+/BbI+kG/WPi 6qCQ== Received: by 10.205.132.6 with SMTP id hs6mr2761400bkc.26.1345919101088; Sat, 25 Aug 2012 11:25:01 -0700 (PDT) Received: from [192.168.24.2] (91-66-42-108-dynip.superkabel.de. [91.66.42.108]) by mx.google.com with ESMTPS id t23sm7998988bks.4.2012.08.25.11.25.00 (version=SSLv3 cipher=OTHER); Sat, 25 Aug 2012 11:25:00 -0700 (PDT) Message-ID: <5039187B.9070602@gmail.com> Date: Sat, 25 Aug 2012 20:24:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: PHP internals list References: <502EBAA4.9090007@gmail.com> <5037EBB6.7040702@gmail.com> <50380790.5040304@sugarcrm.com> <503812F9.6070200@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Combined assignment operator for short ternary From: krebs.seb@gmail.com (Sebastian Krebs) Am 25.08.2012 01:53, schrieb Nikita Popov: > On Sat, Aug 25, 2012 at 1:49 AM, Sebastian Krebs wrote: >> Hi, >> >> It's like with any other compound operator: A _real_ reason isn't there. But >> saying "It's not worth it" is something I can live with (even if I don't >> know how much effort it would take ;)). I just asked myself: '?:' is (a kind >> of?) binary operator and every other binary operator is available as >> compound operator, so why not '?:', so I don't have to repeat the variable? > > No, every other binary operator is not available. If I interpret this > right one could say that all short-circuiting operators are not > available. E.g. you also can't write $foo &&= $bar; or $foo ||= $bar. > The ?: operator also falls in this category of short-circuiting > logical operators. > Yes, makes sense... And thinking further I think myself it's better to keep it as it is. So thanks for your time :) Regards, Sebastian