Re: [PHP-DEV] RFC proposal : "new" keyword shorthand

2024-06-07 Thread Benoît Condaminet
Le ven. 7 juin 2024, 21:31, Larry Garfield a écrit : > On Fri, Jun 7, 2024, at 5:56 PM, ericm...@php.net wrote: > > >> Instead of ~ (which reminds me of the pendulum of symbols to written to > symbols and back again every 10ish years; “or” vs “||”), why not make a > shorthand way to write a funct

[PHP-DEV] RFC proposal : "new" keyword shorthand

2024-06-07 Thread Benoît Condaminet
Hello, Following the RFC process, I'm sending this to propose a PHP change. More precisely a new zend language token. This is somehow linked to the recently accepted RFC called "new MyClass()->method() without parentheses", the goal is to introduce a shorthand for the "new" keyword. *Motivations