Re: Final variables
| From: | Marco Pivetta | Date: | Thu, 29 Jun 2017 10:16:37 +0000 |
| Subject: | Re: Final variables | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-99680@lists.php.net to get a copy of this message | ||
Hey Dan,
On Thu, Jun 29, 2017 at 12:07 PM, Dan Ackroyd <danack@basereality.com>
wrote:
> On 29 June 2017 at 05:20, Marco Pivetta <ocramius@gmail.com> wrote:
>
> > References to properties ...is effectively a BC break for anything
> > using reflection and closure scope binding
>
> No it's not.
>
> If that feature was brought into PHP, any code that is currently
> valid, that the library is capable of reflecting, would still be valid
> code, that the library would still be capable of reflecting.
>
We discussed this before: any library designed around the capability of
dealing with a generic object would break in these scenarios, which is why
I always bring it up. It needs to be considered in an RFC, including
possible mitigation and alternatives.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/