Hi internals,
I'd like wiki karma to write an RFC for the feature of setting
properties/calling methods within an expression with the result of the
object itself, eg
$this->fooMethod(new FooParams() {
setBlah(BLAH_CONST + 1),
prop1 = $foo,
prop3 = $builder->create() {
prop1 = true,
prop2 = $this->getBaz(),
},
});
Wiki Username: jesse.schalken
Also, if anyone has an idea for the name of the feature, please let me
know. The best I can think of is "object-expressions".
Thanks
On Wed, Jul 13, 2016 at 11:53 AM, Jesse Schalken me@jesseschalken.com
wrote:
Hi internals,
I'd like wiki karma to write an RFC for the feature of setting
properties/calling methods within an expression with the result of the
object itself, eg$this->fooMethod(new FooParams() {
setBlah(BLAH_CONST + 1),
prop1 = $foo,
prop3 = $builder->create() {
prop1 = true,
prop2 = $this->getBaz(),
},
});Wiki Username: jesse.schalken
Also, if anyone has an idea for the name of the feature, please let me
know. The best I can think of is "object-expressions".Thanks
hi,
I've just granted you rfc karma on the wiki, sorry for the delay.
--
Ferenc Kovács
@Tyr43l - http://tyrael.hu