Re: Re: function call chaining
| From: | Stanislav Malyshev | Date: | Tue, 19 Jan 2010 16:05:36 +0000 |
| Subject: | Re: Re: function call chaining | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-46807@lists.php.net to get a copy of this message | ||
Hi!
I'd rather see two other things that are missing, support for dynamic object and array de-referencing like (new class)->method() and get_array()["index"].The second was next on my list, while the first seems to me kind of exotic - why create object only to call one method and immediately drop it? Why this method is not static then?
I honestly don't see func()()()() make anything better in the world of a PHP programmer.You probably don't use closures, right? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com