Re: [RFC] [VOTE] Class Constant Visibility

From: Date: Wed, 21 Oct 2015 15:54:48 +0000
Subject: Re: [RFC] [VOTE] Class Constant Visibility
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-88904@lists.php.net to get a copy of this message
Hi Sean, internals, While I support this RFC, it seems that the actual implementation is still under discussion. In particular, whether the RFC is going to allow protected constants in an interface is not clear. In the text of the RFC, on one line it says: "This RFC propose PHP support class constant visibility that mirror the behaviour of method and property visibility." This would imply that protected constants are not allowed, as protected methods are not allowed in interfaces. Just below it says: "//Interfaces only support protected/public const, and a compile time error will be throw for privates" Which says clearly that protected constants _would_ be allowed. Please can you update the text of the RFC? Unfortunately, that may need a restart of the voting :-\ However that should just be a formality as it seems to be a popular RFC. cheers Dan

« previous php.internals (#88904) next »