note 126887 added to language.attributes.overview
| From: | Justin at main dot php dot net | Date: | Mon, 28 Feb 2022 20:41:33 +0000 |
| Subject: | note 126887 added to language.attributes.overview | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-217667@lists.php.net to get a copy of this message | ||
Allowing multiple functions to be tagged with the same Attribute is promoting weird design patterns.
Because now the order of the tagged functions within the class becomes relevant. The order of
functions within a class should remain arbitrary.
It would be better to limit function tagging to one Attribute only. This would force people to
implement one function per attribute, which can then call all the other functions they would
otherwise tag with these Attribute's.
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.135 (proxied: 24.72.73.161)
----
Manual Page -- https://php.net/manual/en/language.attributes.overview.php
Edit -- https://main.php.net/note/edit/126887
Del: integrated -- https://main.php.net/note/delete/126887/integrated
Del: useless -- https://main.php.net/note/delete/126887/useless
Del: bad code -- https://main.php.net/note/delete/126887/bad+code
Del: spam -- https://main.php.net/note/delete/126887/spam
Del: non-english -- https://main.php.net/note/delete/126887/non-english
Del: in docs -- https://main.php.net/note/delete/126887/in+docs
Del: other reasons-- https://main.php.net/note/delete/126887
Reject -- https://main.php.net/note/reject/126887
Search -- https://main.php.net/manage/user-notes.php