Re: Re: [RFC] Clone with v2

From: Date: Mon, 26 May 2025 15:28:28 +0000
Subject: Re: Re: [RFC] Clone with v2
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-127464@lists.php.net to get a copy of this message
On Mon, May 26, 2025 at 08:03 Volker Dusch wrote:   > Version 1.1 Update: Array syntax over named arguments. > > Thank you everyone for the discussion and for improving this RFC. > I'm very happy with the updates we made thanks to your feedback on and off list. > > The main idea of this RFC was to have as little of a footprint as possible and > make it feel natural in PHP. I got carried away a bit during writing this, and > by using named arguments, introduced something that isn't used in php-src > provided functions, had edge cases that required documentation, and all in all, > didn't feel natural in PHP but like an inconsistency. PHP uses arrays to pass > lists everywhere else, so changing this here feels like too much scope for this > little change. I'm very happy this was caught and raised in the discussions. > Thank you. > > If there is desire for named-parameter-as-an-array syntax this should be > standalone RFC with more scope than a single function. > > We've updated the RFC and the implementation, removing the "Open Issue" listed > before, as this change resolved all of them. > > - https://wiki.php.net/rfc/clone_with_v2 > - https://github.com/TimWolla/php-src/pull/6 Thank you Volker and Tim for your work on this RFC. It will be a great quality- of-life improvement for the language, and I look forward to voting in favor.. Theodore

« previous php.internals (#127464) next »