RE: [PHP-DEV] Traits and Properties

From: Date: Sat, 18 Dec 2010 19:08:18 +0000
Subject: RE: [PHP-DEV] Traits and Properties
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-51080@lists.php.net to get a copy of this message
On Sat Dec 18 12:33 PM, Stefan Marr wrote: > Hi Jonathan: > > On 18 Dec 2010, at 18:14, Jonathan Bond-Caron wrote: > > > Does the order of the declaration matter? > No, the order does not matter, and that is one of the key points of > traits compared to mixins or Python's way of multiple inheritance. > So, any kind of order-dependent solution would be inconsistent with > the design of traits. > > > though I'd be happy with simply E_FATAL until people start using > > traits > What do you mean by the second part? (until people start using traits) > Changing the design retrospectively does not seem to be the best > option? > Most likely not the best option, I think I'm saying I prefer E_FATAL But if users find it too restrictive / problematic, the auto-resolution "merge to the most restrictive modifier" could be added in a next release or an approach that's convenient to the code out there using traits & properties. That seems better than the other way around.

« previous php.internals (#51080) next »