Re: property de-referencing

From: Date: Wed, 01 May 2013 08:55:18 +0000
Subject: Re: property de-referencing
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-67241@lists.php.net to get a copy of this message
Hello, 2013/5/1 Stas Malyshev <smalyshev@sugarcrm.com> > Hi! > > > In C#, they had the intention to introduce the operator infoof(...) to > > get the reflection, not only of properties, but of virtually everything > > in the language. They abandoned the idea because it is really hard to do > > that for overloaded functions and they did not want to do all that work > > for a half baked feature: > > > > > > http://blogs.msdn.com/b/ericlippert/archive/2009/05/21/in-foof-we-trust-a-dialogue.aspx > > > > However, PHP does not have overloaded functions, which makes things > > significantly easier, so maybe it is worth examining the idea. > > PHP has functions that can be result of __call or arbitrary code that > implements fcall handler in an extension. What would be returned then? > -- > The result is the same with "new ReplectionMethod('foo','bar')". The added value is that it can be statically checked. Lazare INEPOLOGLOU Ingénieur Logiciel

« previous php.internals (#67241) next »