News Feed
Sections




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

Freek Lijten's Blog:
Currently on PHP's internals - Property Accessors
February 03, 2012 @ 09:39:14

Freek Lijten has posted another "Currently on PHP's internals..." post to his blog today (here's the previous one) with a look at the discussions around the idea of having "property accessors" in PHP - a standardized way of defining getters/setters in objects.

Today I will be discussing a feature that at this moment is called "Property Accessor". It is a method of defining getters and setters. Originally an RFC was defined as early as september 2009, but recently new discussion took place and an actual patch was created. There is no certainty this feature will ever make a PHP version but discussion seems to target implementation details and not the feature itself, so things are looking bright for this feature.

There's two RFCs posted about the topic - the original proposal (from Dennis Robinson) and a patch for implementing them (from Clint Priest). The proposal replaces the common magic getters/setters (__get & __set) with the optional "get" and "set" keywords inside of custom-defined properties.

0 comments voice your opinion now!
property accessors proposals rfc internals discussion


blog comments powered by Disqus

Similar Posts

Debuggable Blog: Code Insults Round 1 - Why switch blocks are dumb

Greg Beaver's Blog: phpDocumentor and __get/__set/__call - give us your ideas (RFC)

PHPClasses.org: The Secret PHP Optimization of version 5.4

Zend Developer Zone: PHP User Group Panel Discussion at ZendCon UnCon

JankoAtWarpSpeed.com: Discussion: Why web designers often use PHP over ASP.NET?


Community Events





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


language interview developer api community library bugfix configure install series application wordpress symfony release introduction list podcast code threedevsandamaybe laravel

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