Login   Register  
PHP Classes

Suggestion for PHP5.4

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP Classes blog  >  Top 10 PHP 5.4 featur...  >  All threads  >  Suggestion for PHP5.4  >  (Un) Subscribe thread alerts  
Subject:Suggestion for PHP5.4
Summary:My suggestion for PHP 5.4 is:
Author:ankur gupta
Date:2011-06-22 20:04:17
Update:2011-06-28 18:38:04

  1. Suggestion for PHP5.4   Reply  
Picture of ankur gupta
ankur gupta
2011-06-23 15:57:07

Re organise all the functions in classes and methods.

  2. Re: Suggestion for PHP5.4   Reply  
Picture of Dominique Grabas
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!

  3. Re: Suggestion for PHP5.4   Reply  
Picture of Scot Henderson
Scot Henderson
2011-06-28 18:38:04 - In reply to message 1 from ankur gupta
I second that motion :)