Re: Urgent patch for traits in PHP 5.4
| From: | Ferenc Kovacs | Date: | Fri, 13 Jan 2012 10:59:16 +0000 |
| Subject: | Re: Urgent patch for traits in PHP 5.4 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-57344@lists.php.net to get a copy of this message | ||
On Fri, Jan 13, 2012 at 11:51 AM, Lester Caine <lester@lsces.co.uk> wrote:
> (Several cc's removed)
>
>
> Stefan Marr wrote:
>
>> Sorry, but I am a bit annoyed that 'the community' does not care enough
>> about reviewing such engine changes.
>>
> I feel that it is worth pointing out that there still needs to be a case
> made for the general use of traits. Currently I see no advantage to using
> them so it is not an area I have even looked at. If developments like this
> slow down the general performance of PHP, then they need to be able to be
> disabled as well, and at present my own existing code does seem to be
> running slower on PHP5.4 over 5.3 (and also 5.2). The majority of us ARE
> simple testing that existing code works and working out how to fix stuff
> that gets broken, so spending time on 'new features' tends to be a lot
> lower down the todo list for many of us?
>
> With regards to 'traits' ... why would I not put this code into a base
> class and simply extend from that. To my mind this is a little like 'goto',
> a bodge because designing the class structure is too difficult?
could you please open a separate thread for that?
I think it would be a bad idea hijacking this thread to discuss the usage
of traits.
--
Ferenc Kovács
@Tyr43l - http://tyrael.hu