Hello,

What about has?

interface context {
    /* ... */
}

trait contextA implements context {
    /* ... */
}

class A {
    has contextA;
    has foobar;
}

In my opinion it is similar and descriptive like you having to implement an 
interface with implements, extend a class with 'extends' and now you have a 
trait with 'has'.

> Do you like "class Foo class Bar" instead of "class Foo extends Bar"?
> Normally PHP uses a descriptive naming scheme, while "class Foo { trait
> XY; }}" would be declarative. 

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

Reply via email to