[RFC] Friends#21937
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
|
Per mailing list, updated to only allow access to protected stuff |
Hey Daniel. Not sure what model is followed for the Friends feature addition, but I assume it's the C++ model, the language with most experience doing that. In that sense, making that decision of not allowing private methods/properties is incorrect. There are other languages doing similar things on different ways, buy the clearer Friends concept is the one from C++. It'd be better to follow the steps of an already proven model. (https://isocpp.org/wiki/faq/friends) |
Also https://www.stroustrup.com/bs_faq2.html#friend |
Please see https://wiki.php.net/rfc/friends#access_to_private_class_parts for why private access would break things |
No description provided.