Le 02/11/2015 15:42, guilhermebla...@gmail.com a écrit :
Hi,
One thing that should be worth mentioning is that my approach of
private classes is decoupled in 2 parts.
The first one as the ability to prevent instantiation outside of
namespace and sub-namespaces. The second is the ability to
On Sun, 2015-11-01 at 17:04 +0100, georges wrote:
> I recently discovered the "friendship concept" in c++ and i really
> love the concept.
> And i wonder if the php internals would be interested to implements it
> in the next 7.x major version.
Could you provide use cases where this provides a be
*One more detail : I wouldn't set the 'friend' information on the same
line as the class declaration.*
I agree, it can look horrible to read, and the way to use the "friend"
syntax as the way that we currently "use" traits can be an interesting idea.
Geolim4
2015-11-02 15:42 GMT+01:00 guilherme
Hi,
One thing that should be worth mentioning is that my approach of private
classes is decoupled in 2 parts.
The first one as the ability to prevent instantiation outside of namespace
and sub-namespaces. The second is the ability to access protected members,
which matches your wish of friend cla
Hi Georges,
Le 01/11/2015 17:04, georges a écrit :
Hi php internals,
I recently discovered the "friendship concept" in c++ and i really love
the concept.
And i wonder if the php internals would be interested to implements it in
the next 7.x major version.
You may be interested by an articl
Hi Georges,
I quite like this idea. Although I struggle to see many use cases. The only one
I’ve thought of in the past is the ability to ‘befriend’ the test case for your
class. So you don’t have to extend the class in your tests if you want access
to non-public class members.
This is purely
Hi php internals,
I recently discovered the "friendship concept" in c++ and i really love
the concept.
And i wonder if the php internals would be interested to implements it in
the next 7.x major version.
The concept is simple:
It would allow declared "friend"class method/function to call a