note 48279 added to keyword.extends
| From: | jo at durchholz dot org | Date: | Fri, 17 Dec 2004 16:54:11 +0000 |
| Subject: | note 48279 added to keyword.extends | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-81920@lists.php.net to get a copy of this message | ||
Multiple inheritance, if designed properly into the language, most definitely is worth the trouble.
Solutions exist for all associated problems (including the name clash issue mentioned above -
identify a function by adding the name of the class where is was first defined, and all ambiguities
vanish; make the class identification optional if nonambiguous, and it's even
backwards-compatible).
The rub is that it's difficult to get a language design that's simple to use, efficiently
implementable, and applicable to a dynamically-typed language like PHP.
----
Manual Page -- http://www.php.net/manual/en/keyword.extends.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48279
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48279&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48279&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48279&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48279&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48279&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48279&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48279&report=yes
Search -- http://master.php.net/manage/user-notes.php