News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



feed this:

Stubbles Blog:
Traits for PHP
0 comments :: posted Wednesday February 20, 2008 @ 11:17:00
voice your opinion now!

On the Stubbles blog, Frank Kleine has pointed out a proposal from Stefan Marr to include functionality for traits in PHP.

As a language construct within PHP it would be very easy to do the same, but easier to learn and to use. Beside some keyword issues (the RFC uses "use" as keyword, but this will of course conflict with namespaces) I'm wondering what this will have an impact on reflection - the RFC stays unclear about this.

A trait is a free-floating chink of functionality that, instead of being confined to a class (or file) that has to be called on to use it, exists where the developer can use it from anywhere at any time. This helps solve some of the issues with single inheritance in PHP.

tagged with: trait language functionality independent proposal rfc



developer cakephp conference framework job PHP5 package releases zend security code database zendframework PEAR book ajax application release pecl mysql

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework