Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99298 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43883 invoked from network); 31 May 2017 14:11:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 May 2017 14:11:20 -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 74.125.82.50 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.50 mail-wm0-f50.google.com Received: from [74.125.82.50] ([74.125.82.50:35854] helo=mail-wm0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/6D-43873-60FCE295 for ; Wed, 31 May 2017 10:11:20 -0400 Received: by mail-wm0-f50.google.com with SMTP id 7so120342649wmo.1 for ; Wed, 31 May 2017 07:11:18 -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=sUic1zEJ5df3YrHiokRBHMNQPzI8c/yJfyt3AWX0W64=; b=FgVkghkN30cMV4o0STNPuLBJtu2n7G8BvldPDtQlOSTWs1BWl764peMfjagSKkWHpI t9Q14DwHuMl/MFO25jvOYtCxVwO4x7DKRVMDjDxFdlLANUNwQNqPFs5hrr1a+HhSXhtm GaTR4m2nn63/ooGVXfXphw5F+p8dk/zPnI6BYQq0rP8GB4XvoaFE9U8uURBoPlkRFFil u4y4qCx1wFE0P3NAcT8i5dG0RoB/WTaI/Rx0Eo/J8uRei1ZVDDYAB9rThpsWMWkbe369 6gx/EmC6LvSl08hdsy/nlll4EW6yzp+kliaJAfPJ4006zi0nf6bWBJhqUVFuO1cWPYcE 6kbA== 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=sUic1zEJ5df3YrHiokRBHMNQPzI8c/yJfyt3AWX0W64=; b=Wpr+wLH+ga6WW+SWZLLRD+Awye1qLlSfLMNxru7eq0J/fWYWwyHC1m+er/BJXSTqsG K0865bDUF1BPXJjAWUYt6YmThBP02yfzLS4rv/XK1RFiupLIVlhbCB55yAJwgq0Avz2b sW0aTqKCC53lRImix1veXMElnsuB9YxZucJKEx97R0vgGFpUwyKJ1PRvSBDUlVpunKtj MPEXArvISm1O8Ppw1OsKFKlMPU1uYGx7Wg+dg38J0EkXALLLGP7BdYi4JgdR0GvEFntx DVzDbzjxX+OQoGWakNSQ24OnMuBcW0S5A/eP9SjtBHfNCD0z9E3W/J9Fw7zKc++4e0uS w89A== X-Gm-Message-State: AODbwcB1qkPhcW+9kiACr9OfC2f4AC83Rq586efMk2QYrOuXYR3fH8wR UMkT1+oGHQ7inPrrvIk= X-Received: by 10.223.151.42 with SMTP id r39mr12203927wrb.189.1496239875688; Wed, 31 May 2017 07:11:15 -0700 (PDT) Received: from [10.61.77.213] (188.29.165.101.threembb.co.uk. [188.29.165.101]) by smtp.gmail.com with ESMTPSA id j1sm40295869wmf.6.2017.05.31.07.11.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 May 2017 07:11:14 -0700 (PDT) Date: Wed, 31 May 2017 15:11:12 +0100 User-Agent: K-9 Mail for Android In-Reply-To: References: <934DD9E3-FACE-4BE0-A40F-0B240FE5D186@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable CC: internals Message-ID: <53B738B2-34F3-4507-A199-607E4C22E4E9@gmail.com> Subject: Re: [PHP-DEV] [RFC]Discuss] Syntax for Arrow Functions From: rowan.collins@gmail.com (Rowan Collins) On 31 May 2017 14:48:03 BST, Levi Morrison wrote: >On Wed, May 31, 2017 at 7:36 AM, Rowan Collins > wrote: >> I was just pondering alternative approaches to stop the =3D> token >being ambiguous, and wondered if surrounding the whole expression with >braces could work: >> >> { =3D> $bound * 2 } >> { $a, $b =3D> $a * $b } > >This does not work=2E We permit expressions as statements and we also >allow empty blocks: > > { > $a =3D $foo; > } > >These will conflict in the grammar=2E Yeah, I wondered if that would be the case, but don't know enough about ho= w parsers work to be sure one way or the other=2E It's not ambiguous, becau= se the =3D> wouldn't be legal there, but I guess it's "too late" by the tim= e that token is reached=2E :( Regards, --=20 Rowan Collins [IMSoP]