Hi! On 4/5/21 9:40 AM, André Hänsel wrote:
I was wondering... PHP is the only language I know of where you have to write `(new Foo())->bar()` instead of `new Foo()->bar()`. This is particularly apparent with the builder pattern:
Enabling something that is syntax error now sounds pretty innocent, but I wonder if messing with precedence would cause some deeper consequences in different expressions. We need to be careful here given how much code (and how much weird code) there exists in PHP. If we can guarantee that we can enable this construct without causing any side effects, then it's fine I think.
-- Stas Malyshev smalys...@gmail.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php