Re: [RFC] [Discussion] Clone with

From: Date: Mon, 29 May 2023 12:12:34 +0000
Subject: Re: [RFC] [Discussion] Clone with
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-120427@lists.php.net to get a copy of this message
On 29.05.2023 11:18, Máté Kocsis wrote:
Hi Everyone, In the meanwhile, I changed my proposal to use [] instead of {} after the "with" clause due to its better receptance.
In "Property name expressions" section's first code example I think you intended to do clone $self (not clone $this) inside the foreach() loop. Also, I have a feeling that it would be better to implement `clone $object with $properties` syntax first and if that is accepted think about expressions support. It's not a strong feeling though. -- Aleksander Machniak Kolab Groupware Developer [https://kolab.org] Roundcube Webmail Developer [https://roundcube.net] ---------------------------------------------------- PGP: 19359DC1 # Blog: https://kolabian.wordpress.com

« previous php.internals (#120427) next »