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

2010-04-21 Thread Toorion
Sorry for long delay... On 03/29/2010 09:19 AM, Victor Bolshov wrote: Toorion, I suggest *not* your code becomes unreadable because of PHP limitations but because of you application architecture limitations. I see from your example that you're building a Ext.JS datagrid. And, what is do

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

2010-03-27 Thread Toorion
On 03/27/2010 08:09 PM, Johannes Schlüter wrote: You can always use a (temporary) alias to shorten things $myLongNameObject = new MyLongNameObject(); $t = $myLongNameObject; $t->property1 = '1'; $t->property2 = '2'; $t->property3 = '3'; $t->property4 = '4'; $t->property5 = '5

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

2010-03-27 Thread Toorion
On 03/27/2010 07:23 PM, Martin Jansen wrote: On 27.03.10 17:02, Toorion wrote: $myLongNameObject = new MyLongNameObject(); $myLongNameObject->property1 = '1'; $myLongNameObject->property2 = '2'; $myLongNameObject->property3 = '3'

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

2010-03-27 Thread Toorion
Very often (for example when work with dom or UI object) setting plenty of object properties is require. At this time we has not a lot options. Standard way looks very dirty and be reason of more copy-paste-work. Reproduce code: --- $myLongNameObject = new MyLongNameObject(); $myLong