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

Re: [PHP-DEV] Module or Class Visibility, Season 2

2025-05-22 Thread Michael Morris
On Thu, May 22, 2025 at 4:29 PM Rowan Tommins [IMSoP] wrote: > On 22/05/2025 12:09, Michael Morris wrote: > > >> I've tried several times to explain why I think Linux containers are a >> good analogy; I'm not sure if you didn't understand, or just didn't agree, >> so I don't know what else I can

Re: [PHP-DEV] Forced named parameters

2025-05-22 Thread Anton Smirnov
Hi Alwin On 19/05/2025 19:37, Yogarine wrote: Moreover, what if I don't need a variadic parameter, but would like to declare that the function's interface requires named arguments (because I don't want to be tied to locking parameters to specific positions). If you don't need a variadic, you

[PHP-DEV] PHP 8.3.22RC1 Ready for testing

2025-05-22 Thread Jakub Zelenka
PHP 8.3.22RC1 has just been released and can be downloaded from: https://downloads.php.net/~jakub/ or https://qa.php.net/ or use the git tag: php-8.3.22RC1 Windows binaries are available at: https://windows.php.net/qa/#php-8.3 Please test it carefully, and report any bugs to https://github.co

[PHP-DEV] PHP 8.4.8RC1 Ready for testing

2025-05-22 Thread Calvin Buckley
PHP 8.4.8RC1 has just been released and may be downloaded from https://downloads.php.net/~calvinb/ Or use the git tag: php-8.4.8RC1 Windows binaries are available at: https://windows.php.net/qa/ Please test it carefully, and report any bugs at https://github.com/php/php-src/issues 8.4.8 should

Re: [PHP-DEV] Module or Class Visibility, Season 2

2025-05-22 Thread Rowan Tommins [IMSoP]
On 22/05/2025 12:09, Michael Morris wrote: I've tried several times to explain why I think Linux containers are a good analogy; I'm not sure if you didn't understand, or just didn't agree, so I don't know what else I can say. I have no disagreement with that, but it's an implement

Re: [PHP-DEV] [RFC] Readonly constructors

2025-05-22 Thread Rob Landers
On Thu, May 22, 2025, at 17:01, Mihail Liahimov wrote: > In PHP 8.1 the class read-on syntax was added, which allows you to create > classes that are completely closed to changes. In addition, it allows you to > write less boilerplate when declaring a property in the constructor. > > Before 8.1:

[PHP-DEV] [RFC] Readonly constructors

2025-05-22 Thread Mihail Liahimov
In PHP 8.1 the class read-on syntax was added, which allows you to create classes that are completely closed to changes. In addition, it allows you to write less boilerplate when declaring a property in the constructor. Before 8.1: class A { public function __construct( private readon

Re: [PHP-DEV] Re: [RFC] Clone with v2

2025-05-22 Thread Theodore Brown
On Wed, May 21, 2025 at 23:27 Larry Garfield wrote: > On Wed, May 21, 2025, at 9:13 AM, Tim Düsterhus wrote: >> Am 2025-05-19 12:48, schrieb Volker Dusch: >>> We're still looking for feedback on the ...variadic approach to the >>> Syntax: >>> https://wiki.php.net/rfc/clone_with_v2#open_issues, as w

Re: [PHP-DEV] Module or Class Visibility, Season 2

2025-05-22 Thread Michael Morris
On Wed, May 21, 2025 at 8:27 AM Rowan Tommins [IMSoP] wrote: > > So if we can come up with a solution where only the WordPress plugins need > to be changed, and you can use whatever dependencies you want without > waiting for them to be changed to a new way of working, is that not a good > thing?

Re: [PHP-DEV] Generics - Userland implementation via attributes (released today). Discussion and seeking advice for improvement

2025-05-22 Thread Grigori Kochanov
Grigori Kochanov 11:25 (32 минуты назад) кому: Arvids > Hello Internals! > > My friend Grigory has cooked up an exciting package implementing generics > with full runtime type checking in userland. > I honestly believe it can be surpassed only by doing a full native > implementation (which we kno

[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

Re: [PHP-DEV] [RFC] [Vote] Add WHATWG compliant URL parsing API

2025-05-22 Thread Máté Kocsis
Hello Internals, The "Add RFC 3986 and WHATWG URL compliant API" RFC ( https://wiki.php.net/rfc/url_parsing_api) has just been accepted with 30 "yes" and 1 "no" votes. Regards, Máté