> // Inline constructing: > $car = (new CarFactory())->makeCar(); > // Inline cloning: > $tomorrow = (clone $today)->add($one_day);
Agreed. The fact that these expressions can't be wrapped in parentheses never made any sense to me. > foreach ($arrays as list($e1, $e2, $e3)) { ... Disagree. This feels very obtuse. I wouldn't expect this construct to work at all, and even if it did, it is highly ambiguous (I.E. at first I thought you were intending to grab 3 entries at a time, rather than extracting entries from a second array). John Crenshaw Priacta, Inc. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php