Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93385 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32717 invoked from network); 17 May 2016 17:52:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 May 2016 17:52:39 -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.223.194 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.223.194 mail-io0-f194.google.com Received: from [209.85.223.194] ([209.85.223.194:35651] helo=mail-io0-f194.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/C3-11000-26A5B375 for ; Tue, 17 May 2016 13:52:36 -0400 Received: by mail-io0-f194.google.com with SMTP id i75so4992412ioa.2 for ; Tue, 17 May 2016 10:52:34 -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=4D1GXN2U26Y3bXPRMWk6NoXFIoR9KDjbDlWZgh0UGC0=; b=fvsFYLYg91JgcF//FtZM1BizsQZGJPM1QexS4fK3RE778rKU8fhrWX/ptXEA3lbYuI 4p+qlGPIwQbuBu0/lpARozM/UTBERhWcu3eQJ86Fv0u4S0GRbeuVa/cfVGtQUyQKnLVK nHmV6f4jl8N4bnjC2BzVMdsZpa5ur37lebZ7zfSNMjnRHuPsYkUM2DYUUHgFwRlNhLIc FUA47ygF5ocfs+dMPF4qPrgctpjpGauX9D6obQkxsDlOtebRGv2cxxDVCOzERw2oS9bn praLfERnK1SNBKXb4h83IHWwoDGVoJ+czzACs5TyR6/4Id0CP/vxufBbSLBPGGGHJaFX Xv1A== 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=4D1GXN2U26Y3bXPRMWk6NoXFIoR9KDjbDlWZgh0UGC0=; b=GwgpmRlOWiWqmxypj6dkauf9cXbpXoOgQzlkVu+s04BXesLQW4LbUwC7F3KELnoZQq Zj2XuQBS+SLcosBDJqujdsTLcmecNhoXYfxfCyCqw2T6FkbzVJ8cnAI8BucTgfM+Ui2B rpxvSgxXHN7SLiT8guZ/Fp8NIjdakUHbSTusZGb1IqpMHKaXZdp6TlPvY34k1mipoZ0a g9lqvlITm1v8Y5i5HxMp/3sp99tcoN0c/MSQep7SrhuPoHyCBGsUN99EhT7bR7CiQN/M 1mH0/LINuoPUeikPRaFmKDt83NHjsQLQTxxO/nSssTn+vmhX7yy0PY/ZdpPQbHUf1isd Vrjw== X-Gm-Message-State: AOPr4FXhOO70fn7D2bVIZ2c3CbIgEO1wHdNngjPo67GUIdbvm5TJv3ZUk4jQ2DsM0CDUPucy5lBl+tyGetB/5w== MIME-Version: 1.0 X-Received: by 10.36.29.138 with SMTP id 132mr2220680itj.64.1463507551855; Tue, 17 May 2016 10:52:31 -0700 (PDT) Sender: php@golemon.com Received: by 10.36.9.67 with HTTP; Tue, 17 May 2016 10:52:31 -0700 (PDT) X-Originating-IP: [107.198.91.68] In-Reply-To: References: <98.61.11104.A1D41375@pb1.pair.com> <7c94ca37-e188-dd2b-a66f-bb63bf03041a@gmail.com> <1463008795.1856219.605250569.74618FC4@webmail.messagingengine.com> <92E7F8A8-0845-48A7-91B1-9554C5F66C9D@zend.com> <879feadf-c04e-c0de-826b-110b3eb4e22f@php.net> <85ec320c-b8d6-1cc8-2059-7b8dfa6589e2@php.net> <5739237C.1090605@garfieldtech.com> <33119a72-a146-ea6a-076a-67a886ebdaea@php.net> <0d264480-3e55-4765-d6db-eec8dfcb47bf@php.net> Date: Tue, 17 May 2016 10:52:31 -0700 X-Google-Sender-Auth: 8dY1kkyOzfzpqYVEG3R4IzVnQbo Message-ID: To: Ryan Pallas Cc: =?UTF-8?Q?Fran=C3=A7ois_Laupretre?= , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Pipe Operator From: pollita@php.net (Sara Golemon) On Tue, May 17, 2016 at 5:47 AM, Ryan Pallas wrote: > Can the place holder be used twice? > In the current PR version, no. It adds complexity to the implementation when dealing with temp vars. In the interest of keeping the implementation simple, I opted for making the repeated use of $$ an error. If that's a serious problem, I can take another crack at resolving that short-coming. > If its numeric, can I make it negative or perform other math? > You can do anything with it that you can do with any other expression. So yeah, unary minus, basic math, concat, etc... If you can use a variable there, you can use the placeholder. -Sara