Dominique Grabas - 2011-06-24 08:33:25 -
In reply to message 1 from ankur gupta
I think that Ankur Gupta's suggestion is rather interesting. It offers many benefits:
* moving PHP into the realm of fully Object Orientated languages
* using the same name for different, but similar, functions applying to different types ("overloading" in C++) - possible because the functions with same name would belong to different classes
* offering an opportunity to reorganise / restructure the core libraries
On the other hand, it would be a **major** backwards compatibility issue...
A mechanism to deal with that BC issue (smarter than just offering both interfaces side by side) would have to be provided (e.g. include files that would provide one interface built on the other one).
Nonetheless, I vote for it!