Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105262 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 46931 invoked from network); 12 Apr 2019 17:48:44 -0000 Received: from unknown (HELO NAM03-BY2-obe.outbound.protection.outlook.com) (40.92.6.10) by pb1.pair.com with SMTP; 12 Apr 2019 17:48:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TzI/Pwc5m3Jv7DptgErFfX1EuCH32AxWUWCPwcdMEV0=; b=OznM3ohKSKZYAtFSjcreeSPn4WJ/zW35dBGI+qz8j0E1gXhJyhQU6DF58qU/xPpp7/H0BTuwxXdQPc3iN8NeA4qWDUhWyImRW6EydKPIu7sPN7QW9smiQ7Vg8dh8n48mZzqzIlQrmZ43TOfbGLMP3BcVGk+PKu1INh43lXzhw0e6Qa//oIybcBU7QbOcJof3e6BWvboARxlgsRyc8CE6sbk/306zklms9f+2kEmxJu9inSKTMRMFOjrLvB8CI+N0J2m5BmuH2sjr8WuTY/6yUaI3xKw3pbbvPxsXAO+Sj7HEsoDRP1iRkxHDQV3bycIZ6/hgx9C+/IWd/fr82+mqeg== Received: from CO1NAM03FT034.eop-NAM03.prod.protection.outlook.com (10.152.80.59) by CO1NAM03HT040.eop-NAM03.prod.protection.outlook.com (10.152.81.52) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1771.16; Fri, 12 Apr 2019 14:46:23 +0000 Received: from DM5PR06MB2857.namprd06.prod.outlook.com (10.152.80.55) by CO1NAM03FT034.mail.protection.outlook.com (10.152.80.177) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1771.16 via Frontend Transport; Fri, 12 Apr 2019 14:46:23 +0000 Received: from DM5PR06MB2857.namprd06.prod.outlook.com ([fe80::447:30c5:3c4c:5294]) by DM5PR06MB2857.namprd06.prod.outlook.com ([fe80::447:30c5:3c4c:5294%8]) with mapi id 15.20.1792.016; Fri, 12 Apr 2019 14:46:23 +0000 To: Fabien S CC: PHP internals Thread-Topic: [PHP-DEV] Re: [RFC] Arrow functions / short closures Thread-Index: AQHU7hRdztwBcET/DE6RhDU8I6RhSqYzZpMAgAA4rwCAAXZRAIAABb6AgAAJ5wCAAIFSgIAABA2AgAC1wACAAK+MAIAAAfaAgAAGwICAAYEb5g== Date: Fri, 12 Apr 2019 14:46:23 +0000 Message-ID: References: <582b57dc-42a0-582b-9471-2ede97ba584a@telia.com> <9C232925-ECA1-4DB3-91A5-FE76C3BA1F4A@koalephant.com> ,<6A90A882-6DD3-48CB-94CA-82059F6949B8@gmail.com> In-Reply-To: <6A90A882-6DD3-48CB-94CA-82059F6949B8@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:C337A3153F935D023DC13BFF8096931E5CC417A505D9243C429FC8A8241A4B73;UpperCasedChecksum:ED039524E4CC4AA0DBB9BF2939C422E23C8B86353923134FA39618D180CF359D;SizeAsReceived:7620;Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [waCr221a+JWA1+HX9FRC0OArAcMbiEr0] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031323274)(2017031324274)(2017031322404)(1601125500)(1603101475)(1701031045);SRVR:CO1NAM03HT040; x-ms-traffictypediagnostic: CO1NAM03HT040: x-ms-exchange-purlcount: 1 x-microsoft-antispam-message-info: s2CnZaqQBl7RS2/Zns3UkRMj0CY2RpiXBy0bLD7x8b0nGp7L+NNBCzPmOYklU3Ij/0BdR3louK6z64sL0+JAdqPn62mBhlqBFckA+OYRMTn57bNdF6m7LsT6lQdtoUPQ3usivglwqOyX+LG3o5Qw/V9LeAoFG6DQa7eB3SesY+24SQ5W17lk0C/DzJxGbg8O Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 4d4c5466-6e3a-4b3f-7a80-08d6bf55a24a X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2019 14:46:23.5048 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1NAM03HT040 Subject: Re: [PHP-DEV] Re: [RFC] Arrow functions / short closures From: theodorejb@outlook.com (Theodore Brown) On Thursday, April 11, 2019 at 10:22 AM Fabien S wrot= e:=0A= =0A= > I really like the Haskell `\($x)` syntax, could someone confirm if=0A= > it would possible to drop the parenthesis (like `\$x`) if we have=0A= > one argument ?=0A= =0A= The RFC says this syntax is ambiguous without the parentheses, since=0A= the `\` may also be part of a fully qualified type name. [1]=0A= =0A= I'm not sure whether it would work if the single parameter isn't typed.=0A= =0A= I like the Haskell syntax as well, but I'd also be okay with the `fn`=0A= keyword if that's what others prefer.=0A= =0A= [1]: https://wiki.php.net/rfc/arrow_functions_v2#miscellaneous=0A=