Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62466 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72844 invoked from network); 24 Aug 2012 23:49:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Aug 2012 23:49:18 -0000 Authentication-Results: pb1.pair.com header.from=krebs.seb@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=krebs.seb@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.176 as permitted sender) X-PHP-List-Original-Sender: krebs.seb@gmail.com X-Host-Fingerprint: 209.85.212.176 mail-wi0-f176.google.com Received: from [209.85.212.176] ([209.85.212.176:55534] helo=mail-wi0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 57/F8-24287-DF218305 for ; Fri, 24 Aug 2012 19:49:17 -0400 Received: by wibhn17 with SMTP id hn17so1262843wib.11 for ; Fri, 24 Aug 2012 16:49:14 -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=t1093NjlB9Kx6f8yMMYlmDSJ5eDGGajY85tDnbVzqpQ=; b=jyCxBSQ3ZQ+s0JNqO2kfit5ZzhJYHxT7hpocGkU+wahE5kkzKTkZe3Jdb0mGAc1Q+W ZTykdZi5fWfLHBuJqA/6kASbaYXUDfl63NG1yWUuJ5FtAyzZMbqYmh6Ayy/F0OU0sY1E HV3dx7NT1GIy0SMzNI6LI/fUh9cy+ZZ6vSoDSG+SWhcmVg8ERVJYXb85jimIRwnV1goo yoZm0Kv2UKZw8o5hxgxWqLJERx96GSHyiz5cVdXbUEtg4oDfY/qtGMsWtTd1xwkUV8Xu oKlyo8SV5w8qNedXqaFmyOqZ1LEqBhui0sTddj7qdRkpj6vRTv37tCztA9omMWKFxk78 m+qA== Received: by 10.216.132.18 with SMTP id n18mr3613512wei.194.1345852154281; Fri, 24 Aug 2012 16:49:14 -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 ef5sm1693656wib.3.2012.08.24.16.49.13 (version=SSLv3 cipher=OTHER); Fri, 24 Aug 2012 16:49:13 -0700 (PDT) Message-ID: <503812F9.6070200@gmail.com> Date: Sat, 25 Aug 2012 01:49:13 +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> In-Reply-To: <50380790.5040304@sugarcrm.com> Content-Type: text/plain; charset=ISO-8859-15; 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:00, schrieb Stas Malyshev: > Hi! > >> To point that out: I _don't_ want to change the behaviour, which means >> >> | $foo['xy'] ?:= 'bar'; >> >> would trigger a notice like >> >> | $foo['xy'] = $foo['xy'] ?: 'bar'; > > Then I personally don't see much point in it. Saving a couple of > keystrokes IMHO is not really worth it. > 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? Regards, Sebastian