RE: [PHP-DEV] Proposal: shorthand object property setting syntax.

From: Date: Sat, 27 Mar 2010 19:59:33 +0000
Subject: RE: [PHP-DEV] Proposal: shorthand object property setting syntax.
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-47665@lists.php.net to get a copy of this message
I might have missed earlier emails. How about this? $myLongNameObject = new myLongNameObject { property1: '11111', property2: '22222', property3: '33333', property4: '44444', property5: '55555', }; Can we avoid the new as well like in Javascript? $myLongNameObject = { property3: 'xyz', property4: 'abc', property5: 5, property6: { a: 1 } };

« previous php.internals (#47665) next »