Re: Final properties
| From: | Marco Pivetta | Date: | Tue, 05 Apr 2016 16:39:12 +0000 |
| Subject: | Re: Final properties | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-92127@lists.php.net to get a copy of this message | ||
On 5 April 2016 at 18:28, Chris Riley <t.carnage@gmail.com> wrote:
>
> I started a discussion on this a while back, but it fizzled due to not
> having an elegant solution for the 'give me a new one of these with these
> values changed' problem. I would HIGHLY suggest not using the final
> keyword. If final is used as a keyword I would expect it to mean that this
> property definition cannot be changed in a child class. See:
>
> https://marc.info/?l=php-internals&m=144766539202647&w=2
> Would be happy
> to pick this up again and help get the RFC created.
>
Same concern here: just because Java decided that
final means
assign-once, it doesn't mean php should adopt it too.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/