Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105193 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 5435 invoked from network); 10 Apr 2019 11:42:16 -0000 Received: from unknown (HELO mail-it1-f170.google.com) (209.85.166.170) by pb1.pair.com with SMTP; 10 Apr 2019 11:42:16 -0000 Received: by mail-it1-f170.google.com with SMTP id y10so2059517itc.1 for ; Wed, 10 Apr 2019 01:39:22 -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; bh=DseQdyLcLD0aSAG+/teRf1M4o+5CfXK7Vp+gFL9OAII=; b=i5MucxV/XO9mWjmU/Bxs2a2cJEBL7WFqQcUkomuq8tchIUof7L3vbA/iS9g7LWnvyA y4xy2fJi+py5YVBPpbtbPxXUY+Wrw9tyV0ahfmvgyx/YFlWq3erAFugL/L0kRzia6GZQ 1sdcmA4xjczIvr5hjXaGVwXVoCzMyaSE7XMA5o+fIwyDpp5TRlnZlG3+YoMt/A1LEihF wlm03Y+a96ri2xvW0R2lv3ylhpYeCJ5NjhunuW93Bu4oNJSEJqZoRpcqlmtx6U7vhFew EQKqAx1Jt5+Q27F85uBVJh+d0FShM/pDdxGlZ5mXqQLNvabeJtMz2BdrkYhMlBOtyI2R o5aA== 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; bh=DseQdyLcLD0aSAG+/teRf1M4o+5CfXK7Vp+gFL9OAII=; b=DWEsqsKV4yGN3B7lcoe7tae6DW9AbVQaBeA22GoTNIXqXUACafF3b98fl05EZuD3lm /m5ftYtNBs3SEjS6x2VBw62FgEsfO44ORjs6kRaHRZM+7Q5ASLqMkg5YY5jdhRUo97hy H1zkNIKdkPZ1FhtqQfy47iQweeQi3uhrDC+24B7DwQOw4dFpgdZ95udZQvmocGZotPjJ 2qE92wDoLk31MsZBXMgIdb7TKRFEHbaoq6AofgRLcdQVIwgPMB09BfmBV4WWOh2zzJWd gDJMSXCpNGyx8f8Qs2zec/NCxoesMAnObTZIVKxhRHl87uyw0Xe/QFGRJvQDlgUVzvp8 4nWg== X-Gm-Message-State: APjAAAWRNnS/l/NazFV2u2n+wiGUi9JJvxzVTPoC0iv5z/LHibHGJ8rH Pq8GMjRW1JlHDagobSiwCR2XvIXww03lclV+X58+Pg== X-Google-Smtp-Source: APXvYqwm7rV5rVuKrGj4V9O9+93/a1vCTcI92waXK64r75Dv1CRYvoXUs+9EkSSOim2/tl4ojVsaBbFI7A+siOCZFSE= X-Received: by 2002:a24:7354:: with SMTP id y81mr2383918itb.87.1554885561495; Wed, 10 Apr 2019 01:39:21 -0700 (PDT) MIME-Version: 1.0 References: <582b57dc-42a0-582b-9471-2ede97ba584a@telia.com> In-Reply-To: Date: Wed, 10 Apr 2019 09:39:10 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="0000000000008f356c05862901fc" Subject: Re: [PHP-DEV] Re: [RFC] Arrow functions / short closures From: rowan.collins@gmail.com (Rowan Collins) --0000000000008f356c05862901fc Content-Type: text/plain; charset="UTF-8" On Tue, 9 Apr 2019 at 11:20, Nikita Popov wrote: > The ==> syntax is the other one I implemented ( > https://github.com/php/php-src/pull/3945). The implementation is based on > lexer lookahead, which is ugly but still manageable. I haven't seen much > support for this variant in this discussion though. And of course, if > there's no strong preference for ==>, I'd rather go with the variant that > is easier for us (and all 3rd party tooling) to support from a technical > perspective. > 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. For those saying they "slightly prefer" ==> please ask yourself, do you prefer it enough to add complexity to every tool that wants to process PHP source code? Regards, -- Rowan Collins [IMSoP] --0000000000008f356c05862901fc--