Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62230 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29348 invoked from network); 17 Aug 2012 22:27:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Aug 2012 22:27:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=keisial@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=keisial@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.182 as permitted sender) X-PHP-List-Original-Sender: keisial@gmail.com X-Host-Fingerprint: 209.85.212.182 mail-wi0-f182.google.com Received: from [209.85.212.182] ([209.85.212.182:47231] helo=mail-wi0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F2/6F-47492-665CE205 for ; Fri, 17 Aug 2012 18:27:50 -0400 Received: by wibhq12 with SMTP id hq12so1755235wib.11 for ; Fri, 17 Aug 2012 15:27:46 -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:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=vGCAUu1zM0g+KZwKp5zoLvOB0J29gdJo2N7AUPWSLc8=; b=MVdpMSL4zjY5bpdQO9u7wQyEG27H/BkE+O2fUFmjjWsPHjtCiBvvJ/zgmavZtytz5s qPu+Cn4W59b9749iDfS3koAPAooJ89aw4C4ZUdNXB8BFA8bp6pkbux7ZDKCMQwS4cT2e J/6MtnzF7R/KbCjiEe0r+1i4Qp8H2UphqN36RvdF4y4seV0u24XWGgxPvmbOTCCMUppi JI6qDKTIrwN43j8EmDidK/Qekdw0F6NDGHJpreYZTi6AbBfNy6ijJhda5GDxSRNIgP6o AjYPWCm2K6QcUVYUFdEnGOrmj3egfnRc2343RI5V08sKkvXzsEZDKC8jrQSTEby/0LeB xy1w== Received: by 10.180.98.138 with SMTP id ei10mr8517184wib.1.1345242466820; Fri, 17 Aug 2012 15:27:46 -0700 (PDT) Received: from [192.168.1.26] (122.Red-83-42-241.dynamicIP.rima-tde.net. [83.42.241.122]) by mx.google.com with ESMTPS id k2sm18191919wiz.7.2012.08.17.15.27.45 (version=SSLv3 cipher=OTHER); Fri, 17 Aug 2012 15:27:46 -0700 (PDT) Message-ID: <502EC500.5060103@gmail.com> Date: Sat, 18 Aug 2012 00:26:08 +0200 User-Agent: Thunderbird MIME-Version: 1.0 To: Sebastian Krebs CC: PHP internals list References: <502EBAA4.9090007@gmail.com> In-Reply-To: <502EBAA4.9090007@gmail.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Combined assignment operator for short ternary From: keisial@gmail.com (=?ISO-8859-15?Q?=C1ngel_Gonz=E1lez?=) On 17/08/12 23:41, Sebastian Krebs wrote: > Hi, > > Don't know, how complicated this is (and also someone (not me) must > implement it, because I can't :X), but to be in sync with the > operators the short ternary operator should be usable in conjunction > with the assignment like the other binary operators. Don't know, if > anybody understands me :D So here is an example > > // instead of > $foo = $foo ?: 'default'; > // Just > $foo ?:= 'default'; > > I have many of this "default assigments" and yes: This is just > syntactic sugar. This seems to enter into ASCII art land. $emoticon ?:=( 8)