Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120427 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 31113 invoked from network); 29 May 2023 12:12:44 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 May 2023 12:12:44 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BD021180382 for ; Mon, 29 May 2023 05:12:41 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15576 212.103.64.0/19 X-Spam-Virus: No X-Envelope-From: Received: from mx.kolabnow.com (mx.kolabnow.com [212.103.80.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 29 May 2023 05:12:40 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id 8FF2D97D for ; Mon, 29 May 2023 14:12:39 +0200 (CEST) Authentication-Results: ext-mx-out001.mykolab.com (amavisd-new); dkim=pass (4096-bit key) reason="pass (just generated, assumed good)" header.d=kolabnow.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:subject:subject :mime-version:date:date:message-id:received:received:received; s=dkim20160331; t=1685362356; x=1687176757; bh=UnXHo1KRsH/kVsaG k9YoVRcDIsT1i5+Gb/stORv4e1o=; b=jStyYbEq44ogFgrtBogYpcI1f2gzb4gV KidB+aowmNfZw8JVNL9bA2woVw4XcrA6Hsv1mv4V/nNBzqQUgWaWI34OdVo7K7Pc fCrsawz3c8aIfeQEE1X06z9p2IpXkaBEkRwyaKW1LcE3W1eiIAAu9OVU+fZN20RF 41d7zYM5Uh8muZyun40AIjZpe4ZSkdKSu3qjsU2d4nJuCPe2+aSUopvfC7GlppCF tT28BgsiSGjNCu6WqGiot3niEB6i/hvJTBqPERHQgVkuA+BzjlAl/bGuEsgPwsI0 sgYPUC9AIXy81LcJIBvNmN3IoJ65XxBlubgsd+3uttilB4AEXbU2YhWtn1Ho/36D y87VxWUI4VN6qWjArlbaFinevct/ziZpO5pWOv85gtCeTzrd6cymiXCnYPgKCpY0 5lS9Z/sPORov27uTi2ZJDPzvWf9bljNeYyZAwET03TqEOMl7hL2kW8WMyVII3Gb2 jT45/IMe/sxr/v1ofdhrb3Nan6xIgT8O3ROU7TQOfqVfEBhwf5xb39zqtzj5dHSO U28A7zDgfDSG4Cl8fepkNtqYLWDqdIolQG6b3CUrZ83scZ0gOthGJtLcTMvyMsb8 YpqrqEhE/NHuw1zvHr3MYG0oooQ1jH9bI/1BBaSnLbRn6XYmM+pDAgOPgjHMxo9C Ik2TgiPSA4U= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U78vFEMQicSy for ; Mon, 29 May 2023 14:12:36 +0200 (CEST) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by mx.kolabnow.com (Postfix) with ESMTPS id 8D4E0628 for ; Mon, 29 May 2023 14:12:36 +0200 (CEST) Received: from ext-subm003.mykolab.com (unknown [10.9.6.3]) by int-mx001.mykolab.com (Postfix) with ESMTPS id D2138ECC for ; Mon, 29 May 2023 14:12:35 +0200 (CEST) Message-ID: <6aa0a33e-8b9f-d96b-bc42-de3b5d85936e@alec.pl> Date: Mon, 29 May 2023 14:12:34 +0200 MIME-Version: 1.0 To: internals@lists.php.net References: <799ae864-6e25-4196-a5ce-0d74600a8378@app.fastmail.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC] [Discussion] Clone with From: alec@alec.pl (Aleksander Machniak) 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