Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92237 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49488 invoked from network); 12 Apr 2016 23:08:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Apr 2016 23:08:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.215.68 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.215.68 mail-lf0-f68.google.com Received: from [209.85.215.68] ([209.85.215.68:34721] helo=mail-lf0-f68.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7E/C1-33659-9008D075 for ; Tue, 12 Apr 2016 19:08:57 -0400 Received: by mail-lf0-f68.google.com with SMTP id e190so4737725lfe.1 for ; Tue, 12 Apr 2016 16:08:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golemon-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=NiHktU4ttc47Cpk9w+GC8pNO1A9SEJT6XiXjuxonrNs=; b=2IHCGcRVJoF+UDtHqj4JWgEdOklyZRrutIqzTKS5H5b+K8gi7Ob6d6Xu/Ba8I+Sju1 YGNUB+Xm0Dcz5nZRR1UM8cfD1igTIcxwz9MPy/+GnJwDbJWE3OtSfbFmSqUAotUPjsuz ipidK8ANXaoa3EU4pueoxyLcDFNNto3Y5gHSCzGr2GMMiBYLA8nbrJqcHWfwXWMcdRQd ce5LHzQCOov5sehWyLD5wZuPvqZY91dGVZKIAZpgH0+hZj4dLt4LRD9XSrbXdaG1fNTa 5nUYlmOm1t+hbIJWKpS0UiUUxSLatYPcMWSlD5i0G5exO+LDavwCRX9n3Vnxsfyx0zOv pXhw== 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=NiHktU4ttc47Cpk9w+GC8pNO1A9SEJT6XiXjuxonrNs=; b=iN37FZNzoHUULtS/a6TVsDEIzqa6NC7Te//apPNg9gOoOGdD2UjVNPgg3/ugnFNIMe AD2LdNtU55jH23tyRyQ3RvO8NEIOLc5ZylEj08Ml9pIaU4rGuSDmVs6QakleMdf+65rO 8TIkQ0+SudmCJStwdJKFjDecVa0pVSyM2+nkNEKoG3LTR3RB5mL1pwtilJ+0xkcfznd6 nqk03Yb7AiR2BtabVufUO4sPagq45zUfr+ljD8rj3/wMH0RrFoG0c9HHyO22PIXPGnN4 Z6ScFt6xc8oa54uYhK92FaPQ24b74bZowSh2lUdyxmsFzmcL3uLuBpVndv8F0FP/S4U2 PibA== X-Gm-Message-State: AOPr4FUBCKNMJROIMTMMiS2o/9rnfM6VWEqtDBpAsoJn6U6RILLJzC89uT3DGo/HIN9U8zQozHfgh7i3Dkt/cA== MIME-Version: 1.0 X-Received: by 10.25.86.144 with SMTP id k138mr1021297lfb.6.1460502533855; Tue, 12 Apr 2016 16:08:53 -0700 (PDT) Sender: php@golemon.com Received: by 10.112.18.75 with HTTP; Tue, 12 Apr 2016 16:08:53 -0700 (PDT) X-Originating-IP: [107.198.91.68] In-Reply-To: References: Date: Tue, 12 Apr 2016 16:08:53 -0700 X-Google-Sender-Auth: NcVlPhMsR6xv5cwvv56B_NvRQjw Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: [RFC] [Vote] Short Ternary Assignment Operator From: pollita@php.net (Sara Golemon) Took me awhile to get back around to this problem, but this version feels okay. https://github.com/php/php-src/compare/master...sgolemon:short-ternary.coalesce It's less efficient than earlier versions, but no worse than the current `A = A ?: B` syntax (which is effectively what it does, with the twist of doing a RW fetch instead of an R fetch, and thus resolving the unwanted notices). -Sara