Re: The future of PHP - object model
| From: | Geoff Caplan | Date: | Wed, 29 Aug 2001 08:26:20 +0000 |
| Subject: | Re: The future of PHP - object model | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-64957@lists.php.net to get a copy of this message | ||
Hi folks
While we are on the subject of strategic issues for PHP, a quick question on
the OOP functionality.
As many on this list will know, there is a peculiarity with the PHP object
model - in many situations it creates a copy of an instance when you would
expect a reference. This means that you have to constantly remember to
create references with &, adding an extra source of hard-to-find bugs.
Are there any plans to sort this out? It rather disfigures the language.
Yes, I know PHP was conceived as a functional language, but a high
percentage of the more sophisticated applications make use of its object
functionality - you just have to look at the script download sites to see
that this is true. Both Perl and C/C++ are examples of successful hybrid
languages. With just a little extra work, PHP could join this list...
Geoff Caplan