# [VOTE] Object Initializer

- Thread: https://externals.io/message/107396
- Original archive: https://news-web.php.net/php.internals/107396
- Started by michal@brzuchalski.com on 2019-10-07T11:00:26+00:00
- Messages: 6
- RFC: Object initializer (Declined) — https://externals.io/rfc/object-initializer.md
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #107396 — michal@brzuchalski.com — 2019-10-07T11:00:26+00:00

URL: https://externals.io/message/107396#107396

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 — michal@brzuchalski.com — 2019-10-07T11:18:33+00:00

URL: https://externals.io/message/107396#107397 · In reply to: #107396

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 — Marco Pivetta — 2019-10-07T11:24:23+00:00

URL: https://externals.io/message/107396#107398 · In reply to: #107397

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):
>
> > […]
> comprehensive.
> > […]
>
>
> --
> regards / pozdrawiam,
> --
> Michał Brzuchalski
> about.me/brzuchal
> brzuchalski.com

---

## #107399 — michal@brzuchalski.com — 2019-10-07T11:48:08+00:00

URL: https://externals.io/message/107396#107399 · In reply to: #107398

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

---

## #107651 — michal.brzuchalski@gmail.com — 2019-10-24T07:41:32+00:00

URL: https://externals.io/message/107396#107651 · In reply to: #107396

Hi all,

I've closed the vote. Object Initializer RFC failed with 26 votes against
and only 3 in favour.
The second vote has a meaning only for future revive of this feature.
The majority decided that the preferred assign token should be eq "=".

Thanks to all for taking a vote.

Cheers,
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

---

## #107720 — Brent Roose — 2019-10-28T08:42:13+00:00

URL: https://externals.io/message/107396#107720 · In reply to: #107651

Hi Michał

I can't help but wonder: why did you start the vote to begin with? It seemed to me that, based on the discussion feedback, it would never pass in its current form.

Kind regards
Brent

> 
> 
> Hi all,
> 
> I've closed the vote. Object Initializer RFC failed with 26 votes against
> and only 3 in favour.
> The second vote has a meaning only for future revive of this feature.
> The majority decided that the preferred assign token should be eq "=".
> 
> Thanks to all for taking a vote.
> 
> Cheers,
> Michał Brzuchalski
> 
> pon., 7 paź 2019 o 13:00 Michał Brzuchalski <michal@brzuchalski.com>
> napisał(a):
> 
> > […]
