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

2025-07-15 Thread Dmitry Derepko
Hi Tim, Great questions, I’ll try to answer them all. Sorry for the late answer, looked like there are no interest in the RFC and I almost forgot about it. > On Jun 4, 2025, at 12:23 PM, Tim Düsterhus wrote: > > In the implementation I'm seeing that `$a = function() => 123;` will also > bec

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

2025-07-15 Thread Larry Garfield
On Tue, Jun 3, 2025, at 12:11 PM, Dmitry Derepko wrote: > I've changed the structure, followed the rfc template now. > > The voting section isn't available now, because the RFC is under discussion. Hi Dmitrii. Are you going to continue this? If you want to bring it to a vote for this release, i

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

2025-06-04 Thread Tim Düsterhus
Hi Am 2025-05-22 11:24, schrieb Dmitry Derepko: 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 Thank you for updating the RFC to match the template. I've read through it and ha

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

2025-06-03 Thread Dmitry Derepko
I've changed the structure, followed the rfc template now. The voting section isn't available now, because the RFC is under discussion. On Tue, May 27, 2025 at 10:58 PM Dmitry Derepko wrote: > Thanks Tim for the answer. > > Your replies went to the Spam folder. I don't know why. > > I'll change

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