On Feb 19, 2008 11:45 PM, Lars Strojny <[EMAIL PROTECTED]> wrote: > I think also for > the sake of conceptual integrity separating interfaces clearly from > traits is a good idea: interfaces define structure while traits are > function buckets. A class may use traits, may implement interfaces and > may extend another class. This paradigm is pretty easy to explain to the > user.
Definitely. Class inheritance (The ``extends`` keyword) inherits type + implementation. Interface inheritance (The ``implements`` keyword) inherits type (but not implementation). Traits fill the missing hole by allowing inheritance of implementation, but not type. -- troels -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php