NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP 5.4.0

Rob Marscher rmarscher at beaffinitive.com
Fri Mar 2 10:48:45 EST 2012


On Mar 2, 2012, at 8:24 AM, Chris Snyder wrote:

> It's a little thing, but I'm looking forward to being able to declare
> arrays using the short syntax:
> 
> $items = [];

Me too.  There was an RFC for javascript-style object literals which I was really excited about, but it was pretty much shot down.  I was going to try to make a patch for it, but never found enough time to dig into how the parser works.
https://wiki.php.net/rfc/objectarrayliterals

I'm excited about Traits.  http://php.net/manual/en/language.oop5.traits.php  It removes the need for multiple levels of subclassing in some cases.





More information about the talk mailing list