note 129015 added to language.oop5.interfaces
| From: | tonymarston at tonymarston dot net | Date: | Tue, 07 Nov 2023 16:53:08 +0000 |
| Subject: | note 129015 added to language.oop5.interfaces | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220971@lists.php.net to get a copy of this message | ||
Note that object interfaces were added to statically typed languages to solve the problem of
allowing polymorphism without the use of inheritance. PHP is dynamically typed and can provide
polymorphism without inheritance and without interfaces, so technically object interfaces are
unnecessary redundant.
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.157.134 (proxied: 62.30.82.227)
----
Manual Page -- https://php.net/manual/en/language.oop5.interfaces.php
Edit -- https://main.php.net/note/edit/129015
Del: integrated -- https://main.php.net/note/delete/129015/integrated
Del: useless -- https://main.php.net/note/delete/129015/useless
Del: bad code -- https://main.php.net/note/delete/129015/bad+code
Del: spam -- https://main.php.net/note/delete/129015/spam
Del: non-english -- https://main.php.net/note/delete/129015/non-english
Del: in docs -- https://main.php.net/note/delete/129015/in+docs
Del: other reasons-- https://main.php.net/note/delete/129015
Reject -- https://main.php.net/note/reject/129015
Search -- https://main.php.net/manage/user-notes.php