note 107548 added to language.oop5.traits
| From: | greywire at gmail dot com | Date: | Thu, 16 Feb 2012 19:12:24 +0000 |
| Subject: | note 107548 added to language.oop5.traits | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186178@lists.php.net to get a copy of this message | ||
The best way to understand what traits are and how to use them is to look at them for what they
essentially are: language assisted copy and paste.
If you can copy and paste the code from one class to another (and we've all done this, even
though we try not to because its code duplication) then you have a candidate for a trait.
----
Server IP: 69.147.83.197
Probable Submitter: 108.193.250.168
----
Manual Page -- http://www.php.net/manual/en/language.oop5.traits.php
Edit -- https://master.php.net/note/edit/107548
Del: integrated -- https://master.php.net/note/delete/107548/integrated
Del: useless -- https://master.php.net/note/delete/107548/useless
Del: bad code -- https://master.php.net/note/delete/107548/bad+code
Del: spam -- https://master.php.net/note/delete/107548/spam
Del: non-english -- https://master.php.net/note/delete/107548/non-english
Del: in docs -- https://master.php.net/note/delete/107548/in+docs
Del: other reasons-- https://master.php.net/note/delete/107548
Reject -- https://master.php.net/note/reject/107548
Search -- https://master.php.net/manage/user-notes.php