Hi,

----- Mail original -----
De: guilhermebla...@gmail.com

> My biggest concern about supporting friend classes is the ability to access
> non-intentional to be accessed code outside of the original class's
> knowledge. This by itself is very dangerous.

That's the opposite : the 'friend' keyword defines the classes which can access 
to your class, not the classes you can access to.

As I already said, package-private is fine, but it restrict the scope to the 
same namespace. I agree that it will be the major case but friendship allows 
other cases.

Regards

François

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

Reply via email to