Re: [PHP-DEV] [RFC] [Discussion] new MyClass()->method() without parentheses

2024-05-09 Thread Larry Garfield
On Thu, May 9, 2024, at 5:12 PM, Valentin Udaltsov wrote: > Yes, I've done that, see https://externals.io/message/123293. D'Oh. At almost the exact same time I replied. :-) Thanks. (Also, please do not top post.) --Larry Garfield

Re: [PHP-DEV] [RFC] [Discussion] new MyClass()->method() without parentheses

2024-05-09 Thread Valentin Udaltsov
Yes, I've done that, see https://externals.io/message/123293. чт, 9 мая 2024 г. в 20:11, Larry Garfield : > On Thu, May 9, 2024, at 3:26 PM, Valentin Udaltsov wrote: > > @Lynn, @Alex, thank you for your comments. I have improved the "without > > constructor arguments' parentheses" part of the int

Re: [PHP-DEV] [RFC] [Discussion] new MyClass()->method() without parentheses

2024-05-09 Thread Larry Garfield
On Thu, May 9, 2024, at 3:26 PM, Valentin Udaltsov wrote: > @Lynn, @Alex, thank you for your comments. I have improved the "without > constructor arguments' parentheses" part of the introduction section > and started the voting. I believe standard procedure expects you to post a new message to t

Re: [PHP-DEV] [RFC] [Discussion] new MyClass()->method() without parentheses

2024-05-09 Thread Valentin Udaltsov
@Lynn, @Alex, thank you for your comments. I have improved the "without constructor arguments' parentheses" part of the introduction section and started the voting. вт, 23 апр. 2024 г. в 16:55, Alexandru Pătrănescu : > > On Tue, Apr 23, 2024 at 3:31 PM Robert Landers > wrote: > >> On Tue, Apr 23

Re: [PHP-DEV] [RFC] [Discussion] new MyClass()->method() without parentheses

2024-04-23 Thread Alexandru Pătrănescu
On Tue, Apr 23, 2024 at 3:31 PM Robert Landers wrote: > On Tue, Apr 23, 2024 at 11:10 AM Valentin Udaltsov > wrote: > > > > > > Does anyone have additional feedback? I'd like to start voting on > Thursday, April 25th. > > I've also added a section on other syntax ideas that have been expressed >

Re: [PHP-DEV] [RFC] [Discussion] new MyClass()->method() without parentheses

2024-04-23 Thread Lynn
On Tue, Apr 23, 2024 at 1:20 PM Robert Landers wrote: > On Tue, Apr 23, 2024 at 11:10 AM Valentin Udaltsov > wrote: > > > > вт, 9 апр. 2024 г. в 19:41, Larry Garfield : > >> > >> On Mon, Apr 8, 2024, at 6:08 AM, Valentin Udaltsov wrote: > >> > Hello internals, > >> > > >> > > >> > > >> > I would

Re: [PHP-DEV] [RFC] [Discussion] new MyClass()->method() without parentheses

2024-04-23 Thread Robert Landers
On Tue, Apr 23, 2024 at 11:10 AM Valentin Udaltsov wrote: > > вт, 9 апр. 2024 г. в 19:41, Larry Garfield : >> >> On Mon, Apr 8, 2024, at 6:08 AM, Valentin Udaltsov wrote: >> > Hello internals, >> > >> > >> > >> > I would like to propose a syntax change for PHP 8.4 that allows to >> > immediately a

Re: [PHP-DEV] [RFC] [Discussion] new MyClass()->method() without parentheses

2024-04-23 Thread Valentin Udaltsov
вт, 9 апр. 2024 г. в 19:41, Larry Garfield : > On Mon, Apr 8, 2024, at 6:08 AM, Valentin Udaltsov wrote: > > Hello internals, > > > > > > > > I would like to propose a syntax change for PHP 8.4 that allows to > > immediately access instantiated objects without wrapping the expression > > into pare

Re: [PHP-DEV] [RFC] [Discussion] new MyClass()->method() without parentheses

2024-04-09 Thread Valentin Udaltsov
> > On Mon, Apr 8, 2024, at 6:08 AM, Valentin Udaltsov wrote: > > Hello internals, > > > > > > > > I would like to propose a syntax change for PHP 8.4 that allows to > > immediately access instantiated objects without wrapping the expression > > into parentheses. > > > > > > > > This was requested

Re: [PHP-DEV] [RFC] [Discussion] new MyClass()->method() without parentheses

2024-04-09 Thread Levi Morrison
I haven't verified the implementation, but as long as there really aren't backwards compatibility issues for correct code, then this would be a nice quality of life improvement.

Re: [PHP-DEV] [RFC] [Discussion] new MyClass()->method() without parentheses

2024-04-09 Thread Larry Garfield
On Mon, Apr 8, 2024, at 6:08 AM, Valentin Udaltsov wrote: > Hello internals, > > > > I would like to propose a syntax change for PHP 8.4 that allows to > immediately access instantiated objects without wrapping the expression > into parentheses. > > > > This was requested and discussed several ti

Re: [PHP-DEV] [RFC] [Discussion] new MyClass()->method() without parentheses

2024-04-08 Thread Bilge
Hi Valentin, You don't need me to tell you how popular your PR is, since it's the single most emoji'd open PR by a wide margin, but this is something that has bugged me since the parser improvements in 5.4. I even remember asking Nikita if it was possible to not have to wrap `new Class` in pa

Re: [PHP-DEV] [RFC] [Discussion] new MyClass()->method() without parentheses

2024-04-08 Thread Deleu
On Mon, Apr 8, 2024 at 3:11 AM Valentin Udaltsov < udaltsov.valen...@gmail.com> wrote: > Hello internals, > > > I would like to propose a syntax change for PHP 8.4 that allows to > immediately access instantiated objects without wrapping the expression > into parentheses. > > > This was requested