Re: [RFC]Discuss] Syntax for Arrow Functions

From: Date: Wed, 31 May 2017 21:11:07 +0000
Subject: Re: [RFC]Discuss] Syntax for Arrow Functions
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-99305@lists.php.net to get a copy of this message
> I can’t think of a scenario where capturing by reference would be helpful in > a single line closure. function($item) use($array) { return $array[] = $item; } It's actually one of the first closures I discovered in the wild when looking for closures that would be candidates for the short form.

« previous php.internals (#99305) next »