Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99628 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14964 invoked from network); 23 Jun 2017 19:06:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jun 2017 19:06:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.170 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.128.170 mail-wr0-f170.google.com Received: from [209.85.128.170] ([209.85.128.170:34779] helo=mail-wr0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5C/54-12245-DC66D495 for ; Fri, 23 Jun 2017 15:06:53 -0400 Received: by mail-wr0-f170.google.com with SMTP id 77so77712652wrb.1 for ; Fri, 23 Jun 2017 12:06:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:cc:from:message-id; bh=0g+kK6PGKV6CfYsU+kV1RT3rQAE/fkeyTV66wLswyAw=; b=s11o0NejAnDaQ/jzaxO4O53kTAsfuOS6rBrUH3TrplUK2cLjrNPDOxEaa1JNKR+C2R 9+mCIDrXIS1nXos0lac/UrkMg4A5oUSdlgLJ1gcwUs7W05nYjJuRhoGAg1kfv3Jtx7nA e8aXktLNYMbwGUK/gXa2WIHri/yCwPax38DE5p1WN8wYOno4TkawlEz1EYqWMfDlzey4 Zb3HqbxsmMQOYS5dka9Sot86XS+vrjYwTveY87bWZRJQwLnAMsz4yeteMXNU1ZlNPPkD ndxlR4Iadm/df14Pb9VT5QO9gIxe0YrPJqtQMct7GvUcs+/NSUGTXILoiyUPfOk4Dalr r7lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:cc:from:message-id; bh=0g+kK6PGKV6CfYsU+kV1RT3rQAE/fkeyTV66wLswyAw=; b=eIbuY7vmnl82fIYP1gq7L3JCWm15xUJ6Hs6p8FaLcGStoI789jnqb0yEF2fU2YhI/W ER6fk4Cx1l3NpBG8+Swxai4KEXPC/UZPU6ZV53nobL9hcRU1i9tib1fF5mX8FvX5Lrps ScHX4HRF0FsNJJ5cw8AT1KW+xf5ti0SBfRsk28PG3VNY7Qo6v6EtZTW574qTC4vqTQkA GR9W0DVAEHBQ0WAtQ3xxQ2+Uv2agsKfeoH2KDKXzFsGPzJFqzYZhtzL/q+WcSjktyr2U 51vdgInOLbxqzA/hDDse1rYNPHc67DkapHenQs8Z5TAx/3okxzKW6nC/W1itIhJfuIJ2 ucJQ== X-Gm-Message-State: AKS2vOy4+t/T5tKXErHCwu7i2wU6kBVhYvTNt/ppgZfs6km7BvXl3LDj wTufCL7iTN+4twE729U= X-Received: by 10.223.142.80 with SMTP id n74mr7413190wrb.131.1498244810482; Fri, 23 Jun 2017 12:06:50 -0700 (PDT) Received: from [10.145.33.244] (92.40.249.53.threembb.co.uk. [92.40.249.53]) by smtp.gmail.com with ESMTPSA id 24sm8043301wrw.0.2017.06.23.12.06.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Jun 2017 12:06:49 -0700 (PDT) Date: Fri, 23 Jun 2017 20:05:46 +0100 User-Agent: K-9 Mail for Android In-Reply-To: References: <5fe1eefe-1c4f-4c31-c975-ab6c768c977c@telia.com> <3C763609-54FC-480B-AE95-94A1873226E0@me.com> <9A3447BF-F982-4C5A-B55B-466036AF2E53@me.com> <2d89daaa-056f-3dcb-a5f2-b790affe203a@garfieldtech.com> <76f05ddb-fe72-fa90-e3a0-8e5233952aa1@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable CC: PHP internals Message-ID: Subject: Re: [PHP-DEV] [RFC]Discuss] Syntax for Arrow Functions From: rowan.collins@gmail.com (Rowan Collins) On 23 June 2017 19:43:19 BST, Rasmus Schultz wrote: >Suffice it to say, I understand your arguments and your point of view, >I >just don't agree with it Indeed, as I say, different people want different things from this proposa= l, and no syntax is going to suit all of them=2E I think this is important,= because it means the choice of syntax can never fully be separated from th= e choice of feature set=2E =20 >I'm a big non-believer in syntax alternatives for the same >language-features for various use-cases I have a lot of sympathy for this view, and it tempts me to say "if it ain= 't broke, don't fix it" - if the existing syntax covers all scenarios, why = bother with a new one at all=2E I understand that your aim would be to repl= ace the existing syntax, and perhaps in the distant future remove it altoge= ther=2E However, I would point out that a huge number of programming constructs ca= n be considered special cases of others=2E For instance, every while loop c= an be replaced with if and goto, but not every combination of if and goto c= an be turned into a while loop; so at one logical extreme, we should remove= while loops from the language as redundant syntax for one special case=2E Like most such decisions, it's a question of where you draw the line: in t= his case, whether you think single-expression closures are a sufficiently c= ommon and distinctive case that they deserve their own syntax=2E Evidently,= you think they are not; I have been reasonably convinced by examples peopl= e have shown that they are=2E Regards, --=20 Rowan Collins [IMSoP]