Re: Class Constant Finalization

From: Date: Wed, 25 Jan 2017 08:12:13 +0000
Subject: Re: Class Constant Finalization
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-97953@lists.php.net to get a copy of this message
Hi! > Given that we can now declare a class constant as public, protected, or > private, can we also declare them final in 7.2? That doesn't make much sense to me. Constant belongs to a class. I don't see much utility in "no class extending from this one can define constant with the same name". final makes sense when the alternative is override, and you want to exclude it. But since there's no override here, no point to exclude anything. -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#97953) next »