Re: [RFC] Constructor Property Promotion
| From: | Ben Ramsey | Date: | Thu, 26 Mar 2020 16:57:45 +0000 |
| Subject: | Re: [RFC] Constructor Property Promotion | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-109344@lists.php.net to get a copy of this message | ||
> On Mar 26, 2020, at 08:30, Nikita Popov <nikita.ppv@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.
Will this cause any problems with ReflectionClass? (I’m assuming not, but wanted to ask anyway.)
Cheers,
Ben
Attachment: [application/pgp-signature] Message signed with OpenPGP signature.asc
Attachment: [application/pgp-signature] Message signed with OpenPGP signature.asc