[RFC] [Discussion] Final constants

From: Date: Tue, 04 May 2021 15:22:00 +0000
Subject: [RFC] [Discussion] Final constants
Groups: php.internals 
Request: Send a blank email to internals+get-114273@lists.php.net to get a copy of this message
Hi Everyone,

I've just written an RFC for final constants:
https://wiki.php.net/rfc/final_class_const.
The prior thread can be found
at https://externals.io/message/114066

In my opinion, the main value proposition of this RFC are the following:
- people can make their intention more clear that a constant shouldn't be
overridden
- it can help fix an inconsistency in the language
- the engine can infer the value of a constant in case of references via
late static binding

Máté


Thread (4 messages)

« previous php.internals (#114273) next »