News Feed
Sections




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

Justin Carmony's Blog:
PHP Itch to Scratch Object Notation
April 14, 2011 @ 13:42:33

In a new post to his blog Justin Carmony talks about a few "itches" he's wanted to scratched when it comes to features of the PHP language - in this post it's the notation that's used surrounding the use of objects.

At the end [of Marco's post to his blog], he states it ultimately boils down to find a better way to bring features build downstream back upstream. So I thought I would do my part by first my blogging about a few "itches" I'd love to see scratched. My first itch would be some form of Object Notation for PHP.

He talks about the notation method that Javascript has always had and how it can help to make objects more flexible by not forcing their creation through a method/argument interface. He offers one potential solution - using arrays for settings values - but notes that it could be more trouble than it's worth in the implementation. He proposes a new sort of notation instead, one that allows the passing of something similar to the Javascript JSON-ish definition of values and callbacks as anonymous functions.

0 comments voice your opinion now!
object notation suggestion array parameter


blog comments powered by Disqus

Similar Posts

PHPMaster.com: An Intro to Virtual Proxies, Part 2

Christopher Jones' Blog: Casting PL/SQL arrays as REF CURSORS for Ruby (and PHP)

Stefan Mischook's Blog: Object Oriented PHP Tutorial Updated

PHPClasses.org: Lately in PHP Ep. 6 - Unusual Site Speedup Techniques, Named params & Annotations

Seastian Bergmann's Blog: Object-Relational Behavioral Patterns


Community Events





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


conference development threedevsandamaybe list series bugfix release deployment language code framework symfony laravel tips introduction api interview community podcast zendserver

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