Re: RFC: Traits for PHP

From: Date: Tue, 19 Feb 2008 22:58:06 +0000
Subject: Re: RFC: Traits for PHP
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-35624@lists.php.net to get a copy of this message
most important issue to me how to handle interface implementations in cases where methods from the interface implementing trait are renamed in the trait consumer class.
Renaming poses problem not only with interfaces. Imagine trait having these methods: function add($key, $value) { ... } function delete($key) { ... } function replace($key, $value) { $this->delete($key); $this->add($key, $value); } What happens if add() is renamed or replaced with function from other trait/interface or dropped? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#35624) next »