- Add "with" syntactic sugar. The "keyword" with is inspired by Pascal and   clarifies code such as:
- Add "with" syntactic sugar. The "keyword" with is inspired by Pascal and
  clarifies code such as:

  $entry= &$list->add(new Entry());
  $entry->setName('hello');
  $entry->setData('old');

  by being able to write:

  with ($entry= &$list->add(new Entry())); {
    $entry->setName('hello');
    $entry->setData('new');
  }

  which is - of course - essentially the same, but more readable.
  Due to PHP's builint varargs support, the following is also possible:

  with ($c= &$n->addChild(new Node()), $e= &$l->add(new Entry())) {
    // ...
  }


git-svn-id: 526f3b90ad6d9b1dfe840af828070ca3d99521ac@2696 d2cacbed-c0f6-0310-851a-9dad52fc623a

johannes85/core