On 06/19/2017 03:45 PM, Rasmus Schultz wrote:
Or maybe it'll look okay if you format the code? $things->forEach({$v => { foo($v); bar($v); }}); Still looks kinda crazy with the closing "}})" though...
Multi-line lambdas should use the existing syntax without changes. The only thing being discussed here is single-statement lambdas that you would want to inline and think of as an expression rather than a function call. If you need something more complex than that just use the existing syntax.
--Larry Garfield -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php