Re: Regarding constructions like func()[0]

From: Date: Sun, 08 Nov 2009 09:52:04 +0000
Subject: Re: Regarding constructions like func()[0]
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-45975@lists.php.net to get a copy of this message
>> >> > > Whilst you are all thinking about this, how about ... > > $value = (function(){return $x;})(); > > Being able to call an anonymous function inline would certainly be a > useful mechanism. Allowing calls without creating dummy user land vars > would be consistent with func()[0]. > If you care not to waste userland with new names, use namespaces, that's the way intruduced by php, and it is not javascript after all.

« previous php.internals (#45975) next »