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
smalys...@gmail.com

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to