[PHP-DEV] Re: [RFC] Object Initializer

2019-10-07 Thread Michał Brzuchalski
Hi all, the discussion period was long and discussion I think quite comprehensive. I'd like to open the RFC up for a voting today at 11:00 UTC. The voting will take from 11:00 UTC 7th till 11:00 UTC 21st of October 2019. BR, Michał Brzuchalski czw., 12 wrz 2019 o 16:00 Michał Brzuchalski napis

Re: [PHP-DEV] Re: [RFC] Object Initializer

2019-09-16 Thread Larry Garfield
On Mon, Sep 16, 2019, at 10:16 AM, Michał Brzuchalski wrote: > Hi Rowan, > > pon., 16 wrz 2019 o 16:57 Rowan Tommins > napisał(a): > > > > > > >> > >>> > >>> That would require multiple new features, though, so initializers might > >>> be > >>> more achievable in the short term, and perhaps ther

Re: [PHP-DEV] Re: [RFC] Object Initializer

2019-09-16 Thread Michał Brzuchalski
Hi Rowan, pon., 16 wrz 2019 o 16:57 Rowan Tommins napisał(a): > > >> >>> >>> That would require multiple new features, though, so initializers might >>> be >>> more achievable in the short term, and perhaps there is room for both, >>> particularly if support for getters and setters improves. >>>

Re: [PHP-DEV] Re: [RFC] Object Initializer

2019-09-16 Thread Rowan Tommins
On Mon, 16 Sep 2019 at 15:37, Michał Brzuchalski wrote: > > >> The problem with that is that you need an extra static method to make use >> of it, and you still need to get the arguments into that method. It might >> be useful occasionally, but it still doesn't help constructors which are >> sett

Re: [PHP-DEV] Re: [RFC] Object Initializer

2019-09-16 Thread Michał Brzuchalski
Hi Rowan, pon., 16 wrz 2019 o 15:47 Rowan Tommins napisał(a): > On Mon, 16 Sep 2019 at 08:29, Michał Brzuchalski < > michal.brzuchal...@gmail.com> wrote: > > > Please keep in mind that initializing properties through object > initializer > > applies to visible properties and is possible to assig

Re: [PHP-DEV] Re: [RFC] Object Initializer

2019-09-16 Thread Rowan Tommins
On Mon, 16 Sep 2019 at 08:29, Michał Brzuchalski < michal.brzuchal...@gmail.com> wrote: > Please keep in mind that initializing properties through object initializer > applies to visible properties and is possible to assign > protected or private properties from the class scope as well. > The pr

[PHP-DEV] Re: [RFC] Object Initializer

2019-09-16 Thread Michał Brzuchalski
Hi all, czw., 12 wrz 2019 o 16:00 Michał Brzuchalski napisał(a): > Hi internals, > > I'd like to open discussion about RFC: Object Initializer. > > This proposal reduces boilerplate of object instantiation and properties > initialization in case of classes without required constructor arguments