Re: svn: /phpdoc/en/trunk/language/oop5/ traits.xml
| From: | Peter Cowburn | Date: | Thu, 18 Aug 2011 13:06:35 +0000 |
| Subject: | Re: svn: /phpdoc/en/trunk/language/oop5/ traits.xml | ||
| References: | 1 2 | Groups: | php.doc.cvs |
| Request: | Send a blank email to doc-cvs+get-8644@lists.php.net to get a copy of this message | ||
On 18 August 2011 13:54, Ferenc Kovacs <tyra3l@gmail.com> wrote:
> why?
> I think currently traits is the best possible solution for singletons in php:
> see http://simas.posterous.com/new-to-php-54-traits
Whether or not traits are a good fit for singletons isn't the point;
the example didn't create a singleton trait so the trait name was a
bad choice. Maybe my commit message wasn't particularly clear.
>
> On Thu, Aug 18, 2011 at 11:08 AM, Peter Cowburn <salathe@php.net> wrote:
>> salathe Thu, 18 Aug 2011 09:08:00 +0000
>>
>> Revision:
>> http://svn.php.net/viewvc?view=revision&revision=315127
>>
>> Log:
>> singleton is bad example for traits
>>
>
>
> --
> Ferenc Kovács
> @Tyr43l - http://tyrael.hu
>
> --
> PHP Documentation Commits Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>