Re: AW: [PHP-DEV] Importing namespaced functions

2013-04-23 Thread Daniele Orlando
+1 The current behavior is really annoying. 2013/4/22 Florian Anderiasch > On 04/22/2013 12:55 AM, Robert Stoll wrote: > > I agree with Igor. The readability could be improved and I do not see the > > problem of hiding built-in php functions (however, I would not recommend > > it). > > I would

Re: [PHP-DEV] __invokeStatic() method

2013-03-19 Thread Daniele Orlando
It is clear to me that there are valid reasons to say yes to this proposal, but there are a lot to say no too. Even if it could be interesting in theory, due to of how PHP handles collisions between classes and functions names (no check at all), implementing a callable class could break existing co

[PHP-DEV] __invokeStatic() method

2013-03-16 Thread Daniele Orlando
nstance = new A(); } public method m() {} } A()->m(); === Conclusion === This feature makes the __invoke() method consistent with the __call() and __callStatic() methods, and opens the door to many cool stuff. Any feedback is appreciated. Daniele Orlando