Suggestion for release the next version of php
| From: | Георгий Иванов | Date: | Tue, 04 Jun 2013 09:29:58 +0000 |
| Subject: | Suggestion for release the next version of php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-15948@lists.php.net to get a copy of this message | ||
Hi!
My name is George.
I know that I write little wrong location for my letter, but I have a great
idea for a new release of PHP.
I propose to reorient language php to object-oriented, modify the functions
to support OOP layer and API procedural layer.
Here is a simple example:
API (procedural) OOP (object-orient)
array_merge Array::merge ->
array_merge(obj, [])
array_count Array::count ->
array_count(obj)
array_shift Array::shift ->
array_shift(obj)
array_unshift Array::unshift ->
array_unsfift(obj)
str_replace String::replace ->
str_replace(obj, [], [])
I think it will be a revolution for PHP6, if it will be possible to specify
in php.ini:
php_api_functions = On; - use the old "procedural approach" in php - to
support existing projects and new php.
Thus, it will be possible to write code for a lightweight like the language
better than Ruby, as well as to implement lazy loading of objects
(initialization).
That's the person I really want to see the language of PHP. Programming in
php for more than 7 years.
Thank you! Please, reply if that is possible.
Regards, George