Den 2016-03-18 kl. 21:12, skrev Fleshgrinder:
On 3/17/2016 9:03 AM, Benjamin Eberlei wrote:
Sorry to dampen your enthusiasm, but you are going slightly off topic here.
Package visibility was tried by Guilherme Blanco before, the way namespaces
are implemented this is not possible in PHP in an easy way. As far as i
understood him, its way too much work for the little benefit. Typed
properties is a huge concept on its own, one small step at a time :-)
No worries you are not, not at all. I just wanted to thwart you and
others in directly assigning ...
final class A {
int $x;
}
... to be *public* and obstruct the opportunity of assigning it a
meaningful new functionality.
Well, but if one should assign int $x without visibility keyword a
meaning, shouldn't it be the same as for function y() {} without
keyword, i.e. public?
Of course one can change both, but that sounds like a 8.0 topic.
Regards //Björn
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php