News Feed
Jobs Feed
Sections




News Archive
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

Reddit.com: Less obvious PHP tricks?

Symfony Blog: Updates to the Plugin Website/Resources

PHP.net: PHP 5.5.0 beta1 available

Web Builder Zone: What we don't need in object-oriented programming

Brandon Savage's Blog: REST APIs as Data Backends


Community Events











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


podcast opinion community framework testing development phpunit series conference introduction zendframework2 example application unittest code interview language release tool functional

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