Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120077 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 81586 invoked from network); 20 Apr 2023 07:22:20 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Apr 2023 07:22:20 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EEE4D1804A9 for ; Thu, 20 Apr 2023 00:22:19 -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.0 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,RCVD_IN_MSPIKE_H2,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.153]) (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 ; Thu, 20 Apr 2023 00:22:18 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id 867CEE0D for ; Thu, 20 Apr 2023 09:22:17 +0200 (CEST) Authentication-Results: ext-mx-out002.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=1681975334; x=1683789735; bh=JLediX/k8ltsoG2h +YjOXG9w0RrwRivU5h0thzmpS7U=; b=XkEB9aQsMaQjaFGDZpN8zltAPnu/LM6e /zg0DQs+Waz59yDzgIUQskS7O/He1T6V3tvl98sO22GK6ys5ml1aDMhIDMBn7mdn 8jnkk9hmSmsUlyyqt9z164Dnd2l33mgmYJHrfftazvxPAW2FKuC6bRV9DnmAGM7e XQLVlk+jKTPrbuHwsCdRnbnL+9pDgVHS+1jrwhbCrUFfYtF0R3njAeRwttfp+3cy 2qYAsXLboywQpDCj0hU8SLaTiQaL4I1hGbJAzJcdUr2HhomrlXweTQm6mg8eNlPi zSbCbNkmFa97MMMHecMBnHQHAxxM1vQQ7x5T36GTtTImSvjWGp5M6nhOqep/a5Kn 2s+nbefJAQE3RYjGCHHAz4aShBkWcwwRqHChhTTwzhzLjTI49kzNToCHJJ6F0Y32 QHFynWPQCla5n1Tt2ZcLGCHJOSr+0GBQ8dT3WyHYsTt4NM2mWF23l+GzBm1XLGyF W0j5Ids+AyGtBD4p40Nweh+d/vtydsRUDxRidqwmSCxZ6HQO7QFYdgs7B2ZVIdth 05vwHevl3VOUJVGVPpW+dDuCa4l6SWRWyYHbrUxR+CeYS4fEeOVQZeWih3AavjiX PiiTx2Azgb9PaP3hfBi37voCJI6inbsJANFH+SupuWFYkXNL8s3e8MrnWQPGHy7C sT6mdkh7bto= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out002.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AZNKV2wHn0wI for ; Thu, 20 Apr 2023 09:22:14 +0200 (CEST) Received: from int-mx003.mykolab.com (unknown [10.9.13.3]) by mx.kolabnow.com (Postfix) with ESMTPS id 8A1A6826 for ; Thu, 20 Apr 2023 09:22:14 +0200 (CEST) Received: from ext-subm001.mykolab.com (unknown [10.9.6.1]) by int-mx003.mykolab.com (Postfix) with ESMTPS id F225A313B for ; Thu, 20 Apr 2023 09:22:13 +0200 (CEST) Message-ID: <85835836-becb-d995-8966-9f996e0839b1@alec.pl> Date: Thu, 20 Apr 2023 09:22:11 +0200 MIME-Version: 1.0 To: internals@lists.php.net References: <687944e3-75ec-446b-bbd6-6d3d6856e864@app.fastmail.com> <1b842b25-c038-f647-67e1-b8c986b7d51d@bastelstu.be> <14DCA246-277A-44EC-B3A5-3809C5BCC7AA@gmail.com> Content-Language: en-US In-Reply-To: <14DCA246-277A-44EC-B3A5-3809C5BCC7AA@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] [Discussion] Clone with From: alec@alec.pl (Aleksander Machniak) On 20.04.2023 09:00, Rowan Tommins wrote: > Rather than making everything use an array or array-like syntax, I would probably go the other way and scrap the special syntax for dynamic names, making the whole thing look like a function call, with support for array unpacking: > > $point = clone $point with (x: $x, y: $y, z: $z); > $point = clone $point with (...['x' => $x, 'y' => $y, 'z' => $z]); or $point = clone($point, x: $x, y: $y, z: $z); Also, I didn't see it mentioned, but maybe for future scope, these new arguments should be passed to __clone(). -- Aleksander Machniak Kolab Groupware Developer [https://kolab.org] Roundcube Webmail Developer [https://roundcube.net] ---------------------------------------------------- PGP: 19359DC1 # Blog: https://kolabian.wordpress.com