.... I was setting up a new project in PHP storm, and when setting the language level for the CLI interpreter I noticed the option to set PHP 7.4, which has "short closures" and arrow functions!!!!!!!!!!! :D :D :D :D :D
"Variable binding
The position of this RFC is that the shorthand syntax is to allow anonymous functions to be used as easily as possible. Therefore, rather than requiring individual variables be bound to the closure through the use ($x) syntax, instead all variables used in the body of the anonymous function will automatically be bound to the anonymous function closure from the defining scope."
.... I was setting up a new project in PHP storm, and when setting the language level for the CLI interpreter I noticed the option to set PHP 7.4, which has "short closures" and arrow functions!!!!!!!!!!! :D :D :D :D :D
wiki.php.net/rfc/short_closures
"Variable binding
The position of this RFC is that the shorthand syntax is to allow anonymous functions to be used as easily as possible. Therefore, rather than requiring individual variables be bound to the closure through the use ($x) syntax, instead all variables used in the body of the anonymous function will automatically be bound to the anonymous function closure from the defining scope."
Oh happy day!!!
22 Yes, 30 No. I don't think this is happening?
I forgot to post the later one.
wiki.php.net/rfc/arrow_functions
The linked RFC was reissued as the above.
.... edit... turns out this one was also reissued as the following.
wiki.php.net/rfc/arrow_functions_v2
51 yes, 8 no