Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92999 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56161 invoked from network); 30 Apr 2016 18:57:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2016 18:57:45 -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.41 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.215.41 mail-lf0-f41.google.com Received: from [209.85.215.41] ([209.85.215.41:35064] helo=mail-lf0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 31/9E-58459-82005275 for ; Sat, 30 Apr 2016 14:57:44 -0400 Received: by mail-lf0-f41.google.com with SMTP id j8so18568881lfd.2 for ; Sat, 30 Apr 2016 11:57:44 -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=vUCTBh3qyYTK4YfLivQC0X1be5E31/zTUhGvqOSVfko=; b=0+VDZD8hxo9rbqqdvEy7a5ePjXoHlIQR3F0U5TPpLOmSSQwHpIWlH5TyB10wGcB2CS 8HM3kUxteiw6+tDqNBSi1va0zz8xSZXzG690unyhVPMqkgZyFRsXeN3LTe4WDGDHxAfP ZX4EMn3qGvN1TFHZEeB0r/FSQQIcSm22VnIMNloraZrCWjQlhZcYmbHYwtIV+JPLIJT1 3d7ChK+gJ1UmPZ7ySApmCkHYxPmkpG2+UQbOrs20VqQ64rszvkkqxAzSf/I2gehmzn7X r2DOcR7lWuEPFP9qdiRCO5w6TIIWjf0n/3KZ/LNwIsha7lT3TORRA86SiPEfoOXP4d3p fvYA== 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=vUCTBh3qyYTK4YfLivQC0X1be5E31/zTUhGvqOSVfko=; b=APHdFWcoG0AL97+Q79kEmuZ7VNjZJZmA3yQJJHAs6b8CEfJazczfn7qoWMULrPKPeN xFBeq64FfzTsOiW8p+CnHQWdBWHhlbfU9IbyO7lwMQhoTi5tODQUpxHh3ba1sphQVNXF EIXyn6X+OxZYRrW04WxoJNBC+G0fjsrfYeeee1uksKp2L2iaY7ZvC4dTYaHk0fFuTrwF k8oTisqIlTLeRZNy+wrbDufBU5YlxC/EI/nMClh7u5mWd/eBlhNSUCW/iRZVH3A+TSQi 6EqtdqrmN61u4unO8nGDHUo+tHGXBlkzFXVUE+ljYYA/+H04VSW2NEVuNg1pJpsI8SxA BxwA== X-Gm-Message-State: AOPr4FXGDa0hAGmIJ5vtYdIurokEPq3lyPw+i8RB/fCZQ4CioJ9h4Sr3ZDVlRrqxQoLRTPDimR34OJdN3Za9/Q== MIME-Version: 1.0 X-Received: by 10.112.198.132 with SMTP id jc4mr12082346lbc.120.1462042660979; Sat, 30 Apr 2016 11:57:40 -0700 (PDT) Sender: php@golemon.com Received: by 10.112.19.74 with HTTP; Sat, 30 Apr 2016 11:57:40 -0700 (PDT) X-Originating-IP: [107.198.91.68] In-Reply-To: References: <8ea990da-1fe7-256c-4e08-0b30715c8e8a@gmail.com> <5724F3F8.5070909@garfieldtech.com> <044e2f8b-db5f-4fca-8490-b7526e97cdf8.maildroid@localhost> Date: Sat, 30 Apr 2016 11:57:40 -0700 X-Google-Sender-Auth: E7Oe0UAqi-7OuxMmoEcX2xv4CpA Message-ID: To: Lester Caine Cc: PHP internals , Larry Garfield Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Pipe Operator From: pollita@php.net (Sara Golemon) On Sat, Apr 30, 2016 at 11:41 AM, wrote: > God I hate crap software ... TRYING to reply without top post ... but Samsung is incapable! > > What I was trying to comment on was that trapping that no result is returned may be what is needed, so handling the empty array rather than a null return just means having to remember what you do use :( > What follows is a terrible idea and I don't mean to propose it as a solution, but to spark further conversation: $result = getData() ?> doStuffWith($$) :> actOnFailureOf($$); Basically, a chaining ternary such that the result of the condition expression propagates to the true/false expressions. Not really the same feature at this point, but a similar chaining-friendly take on the standard ternary. Just thinking out loud... -Sara