[VOTE] Object Initializer

  107396
October 7, 2019 11:00 michal@brzuchalski.com (=?UTF-8?Q?Micha=C5=82_Brzuchalski?=)
Hi all,

the discussion period was long and discussion I think quite comprehensive.

The RFC is at https://wiki.php.net/rfc/object-initializer and is up for
voting now.
The voting will take 2 weeks from 11:00 UTC 7th till 11:00 UTC 21st of
October 2019.

BR,
Michał Brzuchalski
  107397
October 7, 2019 11:18 michal@brzuchalski.com (=?UTF-8?Q?Micha=C5=82_Brzuchalski?=)
Hi all,

A follow-up note.
There is no implementation of a patch yet.

BR,
Michał Brzuchalski

pon., 7 paź 2019 o 13:00 Michał Brzuchalski <michal@brzuchalski.com>
napisał(a):

> Hi all, > > the discussion period was long and discussion I think quite comprehensive.. > > The RFC is at https://wiki.php.net/rfc/object-initializer and is up for > voting now. > The voting will take 2 weeks from 11:00 UTC 7th till 11:00 UTC 21st of > October 2019. > > BR, > Michał Brzuchalski >
-- regards / pozdrawiam, -- Michał Brzuchalski about.me/brzuchal brzuchalski.com
  107398
October 7, 2019 11:24 ocramius@gmail.com (Marco Pivetta)
Hey Michal,

Overall, I like the idea of simplifying constructors. I downvoted the RFC
because:

 * I don't like/want co-existence of ctor and initializer
 * `__set` interactions seem to also be a lot of non-trivial added
complexity.

If this was a short-hand for a constructor replacement (exposed in the same
way downstream and in reflection) I'd totally be for it, but as it is it
blurs the entire class definition by a lot, making things very difficult to
anything reflection-ish based.

On Mon, Oct 7, 2019, 13:18 Michał Brzuchalski <michal@brzuchalski.com>
wrote:

> Hi all, > > A follow-up note. > There is no implementation of a patch yet. > > BR, > Michał Brzuchalski > > pon., 7 paź 2019 o 13:00 Michał Brzuchalski <michal@brzuchalski..com> > napisał(a): > > > Hi all, > > > > the discussion period was long and discussion I think quite > comprehensive. > > > > The RFC is at https://wiki.php.net/rfc/object-initializer and is up for > > voting now. > > The voting will take 2 weeks from 11:00 UTC 7th till 11:00 UTC 21st of > > October 2019. > > > > BR, > > Michał Brzuchalski > > > > > -- > regards / pozdrawiam, > -- > Michał Brzuchalski > about.me/brzuchal > brzuchalski.com >
  107399
October 7, 2019 11:48 michal@brzuchalski.com (=?UTF-8?Q?Micha=C5=82_Brzuchalski?=)
Hi Marco,

pon., 7 paź 2019 o 13:24 Marco Pivetta <ocramius@gmail.com> napisał(a):

> Hey Michal, > > Overall, I like the idea of simplifying constructors. I downvoted the RFC > because: > > * I don't like/want co-existence of ctor and initializer > * `__set` interactions seem to also be a lot of non-trivial added > complexity. > > If this was a short-hand for a constructor replacement (exposed in the same > way downstream and in reflection) I'd totally be for it, but as it is it > blurs the entire class definition by a lot, making things very difficult to > anything reflection-ish based. >
Thank you for your feedback. Cheers, Michał Brzuchalski