Hi,

There is another solution to this problem, which is sort-of-on-the-table, and it's named parameters:

$myLongNameObject = new MyLongNameObject(
   'property1' => '11111',
   'property2' => '22222',
   'property3' => '33333',
   'property4' => '44444',
   'property5' => '55555',
);

With proper update, code hinting for named parameters could be introduced in IDEs in order not to end up slower than the current syntax.

It also solves other issues and doesn't suffer from the scope resolution problems "with() {}" suffers from.

Regards,
Stan Vassilev

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to