Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105215 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 44220 invoked from network); 10 Apr 2019 20:21:02 -0000 Received: from unknown (HELO mail-lj1-f194.google.com) (209.85.208.194) by pb1.pair.com with SMTP; 10 Apr 2019 20:21:02 -0000 Received: by mail-lj1-f194.google.com with SMTP id t4so2876495ljc.2 for ; Wed, 10 Apr 2019 10:18:13 -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=DWBFDTs92dcIIz87YEKs3xSxjXS318aAeUQh2iggDoM=; b=KxPo6tOcskCU1JfyqYcJPkmQcfUhJnVqxpXNg1qZEq84xQd/yzgSpeA3jE8zjCPE9P qvSnZwEyalg2rbYV0x5AMsMcaZNNWcEzx3yywNRjF1gjzjsF0zlj+S1E6v6Suetq+882 F0DEnsEo984+8Cy5uYauBgSSJzej7LGoAfbDovYmRpowtERSnqkCpc1W8NCYP8lR/Y/W lBjG4ClCkoPR2AeaWKyA5p3wU9wuR0nNDl+zj4oyR8lFrnXthv4uLGo/ITgS664/070M Cs6xtRtj4uvMeCQnWyskrk7kTIFY8zIml7PwwE4GXI7D3lu8BLvEl4zfivSTt1xheo4m RE+w== 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=DWBFDTs92dcIIz87YEKs3xSxjXS318aAeUQh2iggDoM=; b=SQBJI1ldGRJnaaNjaSllR1zQFCxznv6HQWYYyZ0mrxcAr22dy58LVNvtezm8gHHxvB VMNDBbPkx/dUD2MnG1unZz4OUeP3k5vYegTIu9UXUBIckUvb7LmAopyRnS2oV4QB6tbN bl4nHk0YPdAhVbhIoddC9TfSAZ6YHPYhlhsy/oCZzfFoVz8Fb8sJH18prkDAKQAgCqli VBe8rvwidotpWpcC5bTOR3kIK2cNvzBz/fInuhKlK9w6jbxiTWayWbKZRgOcGJ8ILUCu qmJjKf4WWzhpNjdBBygNyZNHM7FEGAdHyFdnirCEFPuJ9HMa/U0vfeUKz1KOHne7ZpUM rmAw== X-Gm-Message-State: APjAAAW6JJ7YEbS1cIpCPd6A7DMERkNi3uZ37drl23Zl0+7JvdY+mHDT xW1gQq8ktI1+A7h7R22L5Qwg5rFmUzoJipawIM8= X-Google-Smtp-Source: APXvYqwh+ssp5Y59tb81I/Jd8oLbKsCuQEc9otgTyLPPb6iCmW/6Ei1n664aoWz2eWX2Zbo6LmzI9rVZB0LnGiOR/3c= X-Received: by 2002:a2e:8648:: with SMTP id i8mr23837178ljj.166.1554916692510; Wed, 10 Apr 2019 10:18:12 -0700 (PDT) MIME-Version: 1.0 References: <582b57dc-42a0-582b-9471-2ede97ba584a@telia.com> <9C232925-ECA1-4DB3-91A5-FE76C3BA1F4A@koalephant.com> In-Reply-To: <9C232925-ECA1-4DB3-91A5-FE76C3BA1F4A@koalephant.com> Date: Wed, 10 Apr 2019 10:18:01 -0700 Message-ID: To: Stephen Reay Cc: Robert Hickman , Rowan Collins , PHP internals Content-Type: multipart/alternative; boundary="0000000000001ccd000586304118" Subject: Re: [PHP-DEV] Re: [RFC] Arrow functions / short closures From: mo.mu.wss@gmail.com ("M. W. Moe") --0000000000001ccd000586304118 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 hence 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 editor= , > >> 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 closure= s 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 suf= fered > overrun or saw low productivity because developers were busy typing/readi= ng > parenthesis around argument lists or keywords. > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --0000000000001ccd000586304118--