News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Stubbles Blog:
Traits for PHP
February 20, 2008 @ 11:17:00

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.

0 comments voice your opinion now!
trait language functionality independent proposal rfc


blog comments powered by Disqus

Similar Posts

Bryan's Blog: 5 (More) Ways to be a Better PHP Developer

PHP.net: PHP 5.6.0alpha2 released

Zend Developer Zone: Creating Multi-Language Web Applications with Zend_Translate

Pierre-Alain Joye's Blog: Finally some new features are coming, zip-1.9.0 serie began

CodeIgniter.com: CodeIgniter 1.6 Hits the Streets


Community Events





Don't see your event here?
Let us know!


podcast security framework interview tool language list voicesoftheelephpant introduction laravel library opinion community symfony version composer artisanfiles release series conference

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