Dear internals:
Has been a while since we discussed whether the idea of Traits fits into the programming model of PHP.
To encourage further discussion and experiments, I managed to update some tests, to fix some bugs, and eventually to use GitHub to make it accessible to you.
Please find a version for PHP 5.3 at:
http://github.com/gron/php-src/tree/PHP_5_3-traits
and a version for PHP 6 at:
http://github.com/gron/php-src/tree/PHP_6-traits
For a basic introduction please refer to
- the RFC:
http://wiki.php.net/rfc/horizontalreuse - the test cases available in the source folder under: Zend/tests/traits
and of course ask my directly or on this list.
Best regards
Stefan
To me as a user-end developer this proposal sounds well thought throught and consistent. This time I understood everything that is written in RFC ;) Sorry I can't test it right now, but I definetly will give it a try.
2009/9/3 Stefan Marr php@stefan-marr.de
Quoted text · 14 lines
Dear internals:
Has been a while since we discussed whether the idea of Traits fits into the programming model of PHP.
To encourage further discussion and experiments, I managed to update some tests, to fix some bugs, and eventually to use GitHub to make it accessible to you.
Please find a version for PHP 5.3 at:
http://github.com/gron/php-src/tree/PHP_5_3-traitsand a version for PHP 6 at:
http://github.com/gron/php-src/tree/PHP_6-traitsFor a basic introduction please refer to
- the RFC:
http://wiki.php.net/rfc/horizontalreuse- the test cases available in the source folder under: Zend/tests/traits
and of course ask my directly or on this list.Best regards
Stefan