Re: [RFC] [Vote] Final constants

From: Date: Sun, 23 May 2021 23:42:34 +0000
Subject: Re: [RFC] [Vote] Final constants
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-114562@lists.php.net to get a copy of this message
On Wed, 19 May 2021 at 09:03, Máté Kocsis <kocsismate90@gmail.com> wrote:

> Hi Internals,
>
> 2 weeks of discussion period has passed, so I'm opening the vote. RFC link:
> https://wiki.php.net/rfc/final_class_const,
> previous threads:
> https://externals.io/message/114066,
> https://externals.io/message/114273
>
> The vote will be closed on 2021-06-02.
>
> Regards:
> Máté
>


I'm voting against this because it makes interface constants overridable by
default.
And this means now an interface which extends another one can override the
value of it, something which is currently not possible:
https://3v4l.org/l4OOB

The current behaviour for classes might be unfortunate but can make sense.
If this would only target class constants my vote would probably be
different.

Best regards,

George P. Banyard


Thread (4 messages)

« previous php.internals (#114562) next »