Re: [PHP-DEV] RFC: Single-Expression functions

2025-05-27 Thread Dmitry Derepko
Thanks Tim for the answer. Your replies went to the Spam folder. I don't know why. I'll change the template as you suggested as soon as possible. On Tue, May 27, 2025 at 1:11 PM Tim Düsterhus wrote: > Hi > > Am 2025-05-27 09:08, schrieb Dmitry Derepko: > > As Tim said, it needs at least a 2 we

Re: [PHP-DEV] RFC: Single-Expression functions

2025-05-27 Thread Tim Düsterhus
Hi Am 2025-05-27 09:08, schrieb Dmitry Derepko: As Tim said, it needs at least a 2 week discussion period. Could you share the reference? I already did in my email: https://wiki.php.net/rfc/howto (“When discussion ends, and a minimum period of two weeks has passed”). Here it is. I've add

Re: [PHP-DEV] RFC: Single-Expression functions

2025-05-27 Thread Dmitry Derepko
As Tim said, it needs at least a 2 week discussion period. Could you share the reference? Did I miss it or did I not see a PR linked from the RFC? While technically having an implementation is not a prerequisite of an RFC, it is strongly recommended. (Also, having written the original patch, I

Re: [PHP-DEV] RFC: Single-Expression functions

2025-05-27 Thread Dmitry Derepko
On May 26, 2025, at 11:05 PM, tovilo.ilija wrote: In the "Single-Expression functions in other languages" section, at least the Rust and Swift examples are wrong, as such a syntax does not exist for either of them. In case you got this info from an LLM, you should always fact-check whatever an A

Re: [PHP-DEV] RFC: Single-Expression functions

2025-05-26 Thread Larry Garfield
On Mon, May 26, 2025, at 1:14 PM, Dmitry Derepko wrote: > Thanks for your replies. > > There is no big deal for me to use `=>` instead of `=`. Just used to > use `=`. I’ll change it then. > > Thought there would be more thoughts against the RFC, but the voting > will show these votes. > Could so

Re: [PHP-DEV] RFC: Single-Expression functions

2025-05-26 Thread tovilo.ilija
Hi Dmitry Thanks for your interest in improving PHP. On Thu, May 22, 2025 at 11:25 AM Dmitry Derepkowrote: > > https://wiki.php.net/rfc/single-expression-functions In the "Single-Expression functions in other languages" section, at least the Rust and Swift examples are wrong, as s

Re: [PHP-DEV] RFC: Single-Expression functions

2025-05-26 Thread Tim Düsterhus
Hi On 5/26/25 20:14, Dmitry Derepko wrote: Could someone help me with the RFC process? Should I open the vote? Please find https://wiki.php.net/rfc/howto for an explanation of the process. An RFC needs *at least* two weeks of discussion, depending on the complexity of the RFC it should pro

Re: [PHP-DEV] RFC: Single-Expression functions

2025-05-26 Thread Dmitry Derepko
Thanks for your replies. There is no big deal for me to use `=>` instead of `=`. Just used to use `=`. I’ll change it then. Thought there would be more thoughts against the RFC, but the voting will show these votes. Could someone help me with the RFC process? Should I open the vote? --

Re: [PHP-DEV] RFC: Single-Expression functions

2025-05-23 Thread Larry Garfield
On Thu, May 22, 2025, at 8:53 PM, Anton Smirnov wrote: > Hi Dmitriy > > On 22/05/2025 12:24, Dmitry Derepko wrote: > > I'm aware that Larry Garfield previously proposed a similar feature > > several years ago, though it unfortunately didn't pass the voting stage. > > I would like to respectfully

Re: [PHP-DEV] RFC: Single-Expression functions

2025-05-22 Thread Anton Smirnov
Hi Dmitriy On 22/05/2025 12:24, Dmitry Derepko wrote: > I'm aware that Larry Garfield previously proposed a similar feature > several years ago, though it unfortunately didn't pass the voting stage. > I would like to respectfully suggest that using "=" instead of "=>" to > separate declaration an

[PHP-DEV] RFC: Single-Expression functions

2025-05-22 Thread Dmitry Derepko
Hi, Internals! I hope this message finds you well. I would like to respectfully propose single-expression functions for PHP: https://wiki.php.net/rfc/single-expression-functions I've had extensive experience working with Kotlin, which offers a modern approach to Java development and enables clean