Hi, Has anyone attempted a patch for this? Or does anyone have an idea of the feasibility? Is it technically possible in a good/clean way?
- Jon On Thu, Jun 3, 2010 at 9:29 PM, Tig <tigger...@gmail.com> wrote: > On Fri, Jun 4, 2010 at 11:19 AM, Kalle Sommer Nielsen <ka...@php.net> > wrote: > > Hi Tig > > > > 2010/6/4 Tig <tigger...@gmail.com>: > >> Would be at all possible to implement this kind of shortcut? > > > > Its called array-dereferencing and it was proposed countless times, > > including by myself. There is an RFC for this[1] and it was planned on > > the old PHP6 todo at the PDT[2]. > > > > [1] http://wiki.php.net/rfc/functionarraydereferencing > > [2] http://wiki.php.net/summits/pdmnotesmay09#php_6 (see point #13) > > > > Thanks Kalle, I had no idea what it would be called, so I had a hard > time searching for it :] > > I noticed that it has been 'declined' - Date: May 01, 2009 > (declined), http://wiki.php.net/rfc/functionarraydereferencing > > but, as pointed out at point 13 on > http://wiki.php.net/summits/pdmnotesmay09#php_6 > > function call chaining (f()() if f() returns function), and array > dereferencing (f()[0]) - (Stas) > > So does this mean array-dereferencing was original declined but still > a possible for PHP 6? > That is how I'm reading it, but just want to make sure. > > Again, thanks. > > -Tig > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Jonathan H. Wage (+1 415 992 5468) Open Source Software Developer & Evangelist sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org You should follow me on Twitter: http://www.twitter.com/jwage You can contact Jonathan about Doctrine, Symfony and Open-Source or for training, consulting, application development, or business related questions at jonathan.w...@sensio.com