Re: Allow (...)->foo() expressions not only for `new`
From: Ralph Schindler Date: Mon, 25 Feb 2013 21:41:19 +0000 Subject: Re: Allow (...)->foo() expressions not only for `new` References: 1 Groups: php.internals Request: Send a blank email to [email protected] to get a copy of this message
PHP 5.4 added support for expressions of the kind (new Foo)->bar(), (new Foo)->bar and (new Foo)['bar']. I'd like to extend this support to any expression instead of just new.I like it, we discussed this 2 years ago, could you address my original use case? Would it work: $value = ($obj = new Foo)->produceAValue(); http://news.php.net/php.internals/56684 -ralph
Thread (32 messages)
« previous | php.internals (#66219) | next » |
---|