Bug #52630 [Opn]: additional syntax for closures

From: Date: Tue, 17 Aug 2010 20:21:18 +0000
Subject: Bug #52630 [Opn]: additional syntax for closures
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-153538@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52630&edit=1 ID: 52630 Updated by: kalle@php.net Reported by: giorgio dot liscio at email dot it Summary: additional syntax for closures Status: Open Type: Bug Package: Variables related Operating System: all PHP Version: 5.3.3 -Assigned To: +Assigned To: stas Block user comment: N New Comment: I belive stas' had a patch for this? Or atleast function call chaining, but I assume if implemented it would allow this syntax? Previous Comments: ------------------------------------------------------------------------ [2010-08-17 22:17:26] giorgio dot liscio at email dot it Description: ------------ hi, would be nice having this syntax for closures $this->addResult ( ( function ($param) use ($x) { return $x*$param; } )($result) ); a closure defined and executed in the same instruction, as JavaScript allows ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52630&edit=1

« previous php.bugs (#153538) next »