Req #77109 [Opn->Sus]: Syntax enhancement for writing Lambdas

From: Date: Mon, 05 Nov 2018 14:56:10 +0000
Subject: Req #77109 [Opn->Sus]: Syntax enhancement for writing Lambdas
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217830@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77109&edit=1 ID: 77109 Updated by: cmb@php.net Reported by: tomschrot at gmail dot com Summary: Syntax enhancement for writing Lambdas -Status: Open +Status: Suspended Type: Feature/Change Request Package: Scripting Engine problem Operating System: Any PHP Version: 7.2.11 Block user comment: N Private report: N New Comment: Such kind of language changes certainly require discussion on the internals@ mailing list, and may require the RFC process[1]. Feel free to start it; for the time being I'm suspending this ticket. Note that a related RFC[2] has been withdrawn a while ago. [1] <https://wiki.php.net/rfc/howto> [2] <https://wiki.php.net/rfc/arrow_functions> Previous Comments: ------------------------------------------------------------------------ [2018-11-05 13:32:35] tomschrot at gmail dot com Description: ------------ Using more and more anomynous functions / lambdas I suggest to kind of shortcut the prevous syntax. I suggest to optional replace the "function" keyword by a shorter writing, using $, e.g. $f = function([args]) { ... }; should be $f = $([args]){...}; or, if there are no args at all $f = ${...}; ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77109&edit=1

« previous php.bugs (#217830) next »