($n) => { echo $n; } ($n) use ($m) => { echo $n; } On Tue, Feb 19, 2013 at 8:11 PM, Levi Morrison <morrison.l...@gmail.com>wrote:
> > IF (and I stress if) we add a a shorter anonymous function syntax I'd > > like it to be geared towards one-liners because that's where the > > current syntax feels really verbose, especially when you close over > > other variables: > > > > function ($n) use ($m) { return $m * $n; } > > > > Versus one potential option: > > > > ($value) |$m| => $m * $n; > > My apologies, this was meant to read: > > ($n) |$m| => $m * $n; > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Best regards, Andrey