Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98162 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26870 invoked from network); 4 Feb 2017 03:07:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Feb 2017 03:07:04 -0000 Authentication-Results: pb1.pair.com header.from=php-lists@koalephant.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=php-lists@koalephant.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain koalephant.com designates 206.123.115.54 as permitted sender) X-PHP-List-Original-Sender: php-lists@koalephant.com X-Host-Fingerprint: 206.123.115.54 mail1.25mail.st Received: from [206.123.115.54] ([206.123.115.54:60146] helo=mail1.25mail.st) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7A/1D-38491-65545985 for ; Fri, 03 Feb 2017 22:07:03 -0500 Received: from [10.107.79.201] (ppp-223-24-69-242.revip6.asianet.co.th [223.24.69.242]) by mail1.25mail.st (Postfix) with ESMTPSA id 0D98E60462; Sat, 4 Feb 2017 03:06:50 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) X-Mailer: iPhone Mail (13G36) In-Reply-To: <9AF0D2F6-D668-418C-8B96-3320D9D245ED@trowski.com> Date: Sat, 4 Feb 2017 10:06:46 +0700 Cc: ilija.tovilo@me.com, internals Content-Transfer-Encoding: quoted-printable Message-ID: <5722B01C-A621-4C13-B34B-383B0D9753F9@koalephant.com> References: <19.45.38491.677D4985@pb1.pair.com> <611b72db-420f-4963-ab92-0ddf977a0aaa@Spark> <9AF0D2F6-D668-418C-8B96-3320D9D245ED@trowski.com> To: Aaron Piotrowski Subject: Re: [PHP-DEV] [RFC][Discuss] Arrow Functions From: php-lists@koalephant.com (Stephen Reay) > On 4 Feb 2017, at 07:25, Aaron Piotrowski wrote: >=20 > $callback =3D |int|float $x| =3D> $x ** 2; Forget the parser, you're giving my eyes diabetes trying to read that. As has been said before, PHP is relatively verbose compared to other languag= es. That makes it slightly more characters to type, but it also makes it abs= olutely clear what is happening. As Niklas said, all ambiguity/clarity issues are solved by using "function",= at the cost of 6 characters. Suggesting that a search for arrow functions will be easier with and then using grep (which could also easily match arrow= functions using "function") as your example search seems odd to me.