Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92983 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19064 invoked from network); 30 Apr 2016 13:57:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2016 13:57:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.46 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.215.46 mail-lf0-f46.google.com Received: from [209.85.215.46] ([209.85.215.46:33092] helo=mail-lf0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6B/B8-58459-2D9B4275 for ; Sat, 30 Apr 2016 09:57:39 -0400 Received: by mail-lf0-f46.google.com with SMTP id y84so146054728lfc.0 for ; Sat, 30 Apr 2016 06:57:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=e74Yx2nahlGgeWRuZZwMHHITTlWRvGnukn8F+OD0a1s=; b=tEEfjVcS7JXbM+mdFBzahF7oD6GnqbTZgQlpV0eBtiDGYqV4Tpoo6bv1YSAaVmKBgx oLfJsmURpW9zHwt4OqOWNcDNoWbZtMFJTvtK2U7pbONy/YciHXeHwOUjRrcP42gJx3ro Jpn7XuoB0QwH5J83JO0VW7AWvQjxbWaOhp57u9JDg9ae95H9tvGi+2Rqo+zihzl2cDiP uwJiG+kEAJxcuv2OSGDOtUV+rGwOhyVz7N1vquA+UKspJFuiNKTWsS7M2KWZDOFdMJ13 T0GMfWOf5JqpNxymWyNpUFKIg0leLl7f9jI1Z9ZMNFfBhpaM9q7VSQynBUB/WtyyiOto uIyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=e74Yx2nahlGgeWRuZZwMHHITTlWRvGnukn8F+OD0a1s=; b=PhPbCQGrsx16Y6odqawxBiiOd4lNvGmvb7AoOifdeYKof0bMRw7Xx7dOXMq6bYZ4LD uRrG+5aY9C6lfmJI9ExKWXIWiZiBqFVTVL0KxelO4FNLD9blmERtZnWa/+4hwb76BhCR pduYEmuCa7GqpVtnjlz1H6Zt6dy9BcP3arNJj8mYx56zILrQTQM5UV5YNYOXQ+M8IFzh 9Z96Pb4gN9NlVfVs190hr1wGgb457etc1y//5KIDZJwwNGztg3sDkHPsj1k/3ZcHRt40 6Qqh8nZ0a5kUPbCp+CayZejbTIvXRXtIs7wIChmceEr6yfVK9Fq99UlW8iP9zCwjFPQj 4vQA== X-Gm-Message-State: AOPr4FUZENFHwy/5RxzoGiVn6fjYef0D5VL9ipOPQr8g6kMlnN2RE7kVsD0AnJHdfpoTx2bGAS+BkY5dD87ATQ== MIME-Version: 1.0 X-Received: by 10.25.158.73 with SMTP id h70mr11422033lfe.69.1462024656022; Sat, 30 Apr 2016 06:57:36 -0700 (PDT) Received: by 10.112.126.67 with HTTP; Sat, 30 Apr 2016 06:57:34 -0700 (PDT) Received: by 10.112.126.67 with HTTP; Sat, 30 Apr 2016 06:57:34 -0700 (PDT) In-Reply-To: <5724B8A4.4010304@lsces.co.uk> References: <5724B8A4.4010304@lsces.co.uk> Date: Sat, 30 Apr 2016 15:57:34 +0200 Message-ID: To: Lester Caine Cc: PHP Internals List Content-Type: multipart/alternative; boundary=001a113f18944675f90531b424f0 Subject: Re: [PHP-DEV] [RFC] Pipe Operator From: ocramius@gmail.com (Marco Pivetta) --001a113f18944675f90531b424f0 Content-Type: text/plain; charset=UTF-8 Relevant: https://youtu.be/UvD1VjRvGIk On Apr 30, 2016 15:52, "Lester Caine" wrote: > On 29/04/16 20:58, Sara Golemon wrote: > > This is one of my favorites out of HackLang. It's pure syntactic > > sugar, but it goes a long way towards improving readability. > > https://wiki.php.net/rfc/pipe-operator > > I can see the attraction, but question it's usability in real time code. > It assumes everything has a single linear flow? Once one has branches > handing different results from the various stages it's usability looks > questionable. While one may well be able to break things down with > exceptions handling all of the invalid returns, if one needs to 'break > the flow' to put in an alternate path then what is supposedly a simple > sequence of steps becomes difficult to rework to allow for the change? > Exceptions should be reserved for out of the ordinary events, not > changes in work flow because different paths are equally valid? > > -- > Lester Caine - G8HFL > ----------------------------- > Contact - http://lsces.co.uk/wiki/?page=contact > L.S.Caine Electronic Services - http://lsces.co.uk > EnquirySolve - http://enquirysolve.com/ > Model Engineers Digital Workshop - http://medw.co.uk > Rainbow Digital Media - http://rainbowdigitalmedia.co.uk > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a113f18944675f90531b424f0--