Hi,

jvlad schrieb:
in other words, why to introduce such a new thing as trait instead of using classes and trait'ing them?
I've introduced it as a separate notion from classes to avoid misconception and problems occurring from conflicting properties and constant definitions.

Your example demonstrates the week point of this approach very well in my eyes. Instead of allow easy reuse, you will have to manage much more conflicts. Think it is better to restrict the idea. Just allow to reuse methods trying to avoid additional conflicts which must be handled each time.

Another point is, think there is no benefit in duplicating constants?.

Kind Regards
Stefan

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to