Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105216 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 48452 invoked from network); 10 Apr 2019 20:35:31 -0000 Received: from unknown (HELO mail-lj1-f193.google.com) (209.85.208.193) by pb1.pair.com with SMTP; 10 Apr 2019 20:35:31 -0000 Received: by mail-lj1-f193.google.com with SMTP id j89so2913401ljb.1 for ; Wed, 10 Apr 2019 10:32:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7gKkNaaqzoddRA+OB85neksUQ4SdTwSKfkahvTlo+Zk=; b=JM27lGRZY5UqbZGsij52mMTQcSQjYrpfLWkK9uz1vfMvFnwsT8yPMwpG2ZNUA+revO kt5vtIYHbuJlMefAbcGlx033Yt4WO5EIfELO6rcuIFRkQtYSrZOme9wIsDNMyNs4Fbjk 9HfRn5qMdWWcg2ptYhtQuR9ysdhWOIhUcIMOVEzqkDwUJQ87WqkCv0SbTHbpK/IWBSdT fpJtsCBNCYKVsVu1MxU9AzTqj5xXG56d5SyNC3RUyNMBtjO+f7IT5Prd0fWppJctGkEp HHO2a6Hee1psO3L3WN51pvbGztGFtXqCveBulwVtKpDrlyP3QYg3FzgPh+SLz66jUysk jBvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7gKkNaaqzoddRA+OB85neksUQ4SdTwSKfkahvTlo+Zk=; b=ohaKqH+tIrrdAQlHYAyfEE1or57BfSLP2NY1m/BKBi/cBqtPBSaflii9WLpBghSUw9 yWd+X5DUn8ob6xBF4JSPfhbjXp22U7uXZH5rekiU2aec8j70F92dBO8tlJcvMbv62SDw UkFqBd3KSOfjEq04YZG1/NvzVQUAuqBFct5w/4nDz3UW2G0NJ2jZx0Lz8AD+ISEbkRKB H4qWlljnRy9qjClUOdhGjpW3IjM9hM438t30atAZWctnCT3xpGcD+HA2ChmwNW3tu0Qp aJRmHQMmgkx8uTfJjyCQ10paANhiE/TZ2R0q46xKBOt2P1gHGfCrJTttkTtSZusYyccK UIuA== X-Gm-Message-State: APjAAAVZUORRg81afe5AMZUKl8AVBIE/uxcea7Ky1x6Ahoq9WOQ2b7rq PE7mQN+9t4ZajUq5OvPs5DgCVjVK/KL9PyhqkTw= X-Google-Smtp-Source: APXvYqw9BklSU9jtYI69wiXZY6/1ZjG/33mQAIw4nsjnuWKvMSo+UTXzxNtNzRNA6L12HxXl74vMjVel9FQhPQ8uoEc= X-Received: by 2002:a2e:2e04:: with SMTP id u4mr14625970lju.37.1554917562070; Wed, 10 Apr 2019 10:32:42 -0700 (PDT) MIME-Version: 1.0 References: <582b57dc-42a0-582b-9471-2ede97ba584a@telia.com> <9C232925-ECA1-4DB3-91A5-FE76C3BA1F4A@koalephant.com> In-Reply-To: Date: Wed, 10 Apr 2019 10:32:31 -0700 Message-ID: To: Stephen Reay Cc: Robert Hickman , Rowan Collins , PHP internals Content-Type: multipart/alternative; boundary="000000000000f13bff058630740b" Subject: Re: [PHP-DEV] Re: [RFC] Arrow functions / short closures From: mo.mu.wss@gmail.com ("M. W. Moe") --000000000000f13bff058630740b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable @Stephen Reay, I have never seen ML programmers being improductive; that's because maybe you witness people unfit for it; math is less character and contextual i.e meanings change according to environment; it's fully readable to people fitted for it. On Wed, Apr 10, 2019 at 10:18 AM M. W. Moe wrote: > Hello, > > this is not much the syntax which is problematic here but the implicit > lambda capture ruleset proposed; for that, > it would require (fully justified in this case) a preprocessing step henc= e > a language contextual analysis step > or what people call `static`. > > On Wed, Apr 10, 2019 at 2:35 AM Stephen Reay > wrote: > >> >> > On 10 Apr 2019, at 15:59, Robert Hickman wrote= : >> > >> >> I'd just like to amplify this mention of 3rd party tooling: if we go >> with >> >> something which requires complex lexer/parser rules, then every edito= r, >> >> IDE, and static analysis tool will need to also work with that syntax= . >> >> >> > >> > Is this actually a problem? Don't these tools make use of existing >> > parsers like 'php parser', thus the cost is lower than initially >> > apparent? >> > >> > -- >> > PHP Internals - PHP Runtime Development Mailing List >> > To unsubscribe, visit: http://www.php.net/unsub.php >> > >> >> This seems like a risky thing to assume =E2=80=9Cit=E2=80=99ll be fine= =E2=80=9D about. >> >> I=E2=80=99d like to add my (non-voting) voice in favour of the `fn(=E2= =80=A6)` syntax. I >> don=E2=80=99t know that I=E2=80=99d get a lot of use out of short closur= es anyway, but I=E2=80=99d >> at least like it to remain readable on the occasion I might use them, or >> (more likely) work on something where someone else uses them. >> >> I question (loudly) any view that less characters is automatically >> improves readability. I=E2=80=99ve yet to see a project anywhere that su= ffered >> overrun or saw low productivity because developers were busy typing/read= ing >> parenthesis around argument lists or keywords. >> >> >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> --000000000000f13bff058630740b--