Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100797 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11430 invoked from network); 29 Sep 2017 09:23:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Sep 2017 09:23:58 -0000 X-Host-Fingerprint: 62.31.75.76 76.75-31-62.static.virginmediabusiness.co.uk Received: from [62.31.75.76] ([62.31.75.76:5776] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 06/90-34435-C211EC95 for ; Fri, 29 Sep 2017 05:23:57 -0400 Message-ID: <06.90.34435.C211EC95@pb1.pair.com> To: internals@lists.php.net References: <98e7fff2-72ac-0430-72bb-099a021626f6@gmail.com> In-Reply-To: Date: Fri, 29 Sep 2017 10:23:52 +0100 Lines: 2 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 16.4.3564.1216 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3564.1216 X-Posted-By: 62.31.75.76 Subject: Re: [PHP-DEV] [RFC] Pre-draft for PipeOp v2 From: TonyMarston@hotmail.com ("Tony Marston") "Rowan Collins" wrote in message news:f9001e2a-8f13-d4ba-f514-f18dc1e4ff89@gmail.com... > >On 28/09/2017 20:07, Levi Morrison wrote: >> The brace style is concise, nicely delimits the >> expression, and seems the clearest for me to read because the symbols >> don't >> dominate. > > >This is something that I tried to push for in previous discussions - I've >never liked the syntaxes where the expression floats away from the >operator, and you have to work out where it ends. The counter-argument I >got was that some people actually like writing things like this, although >I'm not entirely clear why: > >fn($x) => fn($y) => in_array($x, $y) > Just because some people would like to write code like this does not make it acceptable for the majority of the programming community. You should never forget that the primary aim of a programmer is to write code which can be read by a human, and only incidentally to be executed by a machine (H. Abelson and G. Sussman in "The Structure and Interpretation of Computer Programs", 1984). Some people complain that PHP is too verbose, so they strive to replace long words, or groups of words, with abbreviations or even symbols. This, IMHO, converts a readable program into a bunch of hieroglyphics and should therefore be avoided. I think there should be a rule which states that if something can already be done with 5 lines or less of userland code then it should not be built into the core language as it would be adding unnecessary complications that would only benefit a small minority of programmers but would be to the detriment of the majority. -- Tony Marston