Re: [RFC] Traits with interfaces

From: Date: Wed, 17 Feb 2016 14:34:03 +0000
Subject: Re: [RFC] Traits with interfaces
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-91246@lists.php.net to get a copy of this message
Am 17.02.2016 um 15:25 schrieb Kevin Gessner: > Hello internals team! I'd like to propose an RFC to allow traits to > implement interfaces. I think that would violate "The Flattening Property" [1], meaning that the fact that a class uses a trait must not be noticable by a user of that class. Also bear in mind that explicit is better than implicit. Two explicit declarations, "implements <interface>" and "uses <trait>", makes it obvious from looking at the code of a class that is provides a specific API and uses a trait for its implementation. -- [1] https://wiki.php.net/rfc/horizontalreuse

« previous php.internals (#91246) next »