On Thu, Mar 26, 2020 at 2:30 PM Nikita Popov <nikita....@gmail.com> wrote:
> Hi internals, > > I would like to submit the following RFC for your consideration: > https://wiki.php.net/rfc/constructor_promotion > > This is based on one off the suggestions made in > https://externals.io/message/109220, and some existing discussion on the > topic can be found in that thread. > > The primary motivation for this feature is to close the currently rather > wide gap between the use of ad-hoc array structures, and the use of > well-defined and type-safe value objects. The latter is what we want people > to use, but the former is, unfortunately, what is *easy* to use. > > Regards, > Nikita > I know I said it a few times already, but ... I plan to start voting on this soon. There has been some additional discussion recently on alternative syntax/approaches, such as Mike's parameter blocks, and Larry's "promoted" keyword. I wasn't really convinced by either of those, so I plan to go forward with the proposal as is. Nikita