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