Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127460 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 651F31A00BC for ; Mon, 26 May 2025 14:03:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1748268074; bh=/a8NytxNinWbqCGa6v35ImDRtIJVbaMjUIPveDKzeMQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=mIRnntAUbSsJyiTV/e30jS28qdiWuxx/WMaqPEQ1AmLs6iSZiTqk9gU2prGMrSWps AfFy/u8Jbe1Pys2iVonzzcjz+qBbiZaIDVEdhgEBFkiWK3aNGTZrHpCj1CXo28DDj1 IJ2+i74DBq5E6SkULQ0CaJZXMrRCDkBu/VMYCZhwGk5iN+UZGAlEVz93lcLGtbSlcW 4r+L5AtzJuTZgWT7n0fKiVvrlQU5882npswGaPHpJgKTkSHqTngSi05zCQBfWycmaT /hmLuVTflQK7OhcOqTo2ga0cAQPiNdJTl15SJlokOLdmHV7Y0G9c0NgTqO+HXKnEpI uxfWGQejb9FNw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 65B72180051 for ; Mon, 26 May 2025 14:01:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 26 May 2025 14:01:13 +0000 (UTC) Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-acacb8743a7so420780066b.1 for ; Mon, 26 May 2025 07:03:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tideways-gmbh.com; s=google; t=1748268198; x=1748872998; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/a8NytxNinWbqCGa6v35ImDRtIJVbaMjUIPveDKzeMQ=; b=JzPE264/cKg422XBJwXddTCEit2JsjW4x5I60AlsIwm0pSoIC8I8D5PZ4oG11AOI6/ 8TPjBAn0zR7L8viYRTKMnFJ+lE/fYtZAufOTtdFSx47LW5QKQhgyga1wgOB6k/9xJLpg LmFGhLKEIH/STsHKhWqbSVCaBkb+QieeMHSj+Py1hLhKC7Up2BBnZy2pnfdxkmhcFoyN 3L3QZu1B3DLYbUtWnh2sy71xy+riBzwDrXFB0wZla1/CwrD9iFt67fjoxP1sSb7xBALV wHGvj2GHEfQ0Upt6XVCo8gBrz3HY0ZI0aR+bGENmXrlHYN04LooNH3PaQzGE158njxcE gqqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748268198; x=1748872998; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/a8NytxNinWbqCGa6v35ImDRtIJVbaMjUIPveDKzeMQ=; b=aY8uu+fanZXZwB78r7NJmUboXzyvgOVWaKNF1lCayQUaHzwIi7xyvkEnl7dCeFuHvo Nh3VFJj3oyHGJLk1Q27P5a2bnIBH6/ASTHRz+9FKJ5Zzi9OqKsP1+GbtXbazlxO1YXAD QYMUjsXwsBLsLrkiLOfUEGJpcBZ+SS1C4cLRm9eHsfTtP/1uwRgSlqjYTEE11VYB0D8e k7EJ+uqTNbqT2gBLhEAHhr2KNcBVFhGGaZvzdKUqXOK1wOJLbXubKJWm478PmW7+QG+K vJO25yiqz8DvACO0rnTjsAwJXppMtlQVqM1MIqVjBk9P+4Q9hRpy+/yVVOtwQlu704RQ O7/Q== X-Gm-Message-State: AOJu0Yy6ddYk8Q/Csl9ctbzdd213odm/dPmvyLjWDruMX5NgHa+OcS59 yBXfq32UPvHoethRcv87pCPksDdJnKwlWKCxvjdYIbLbqMT29Dk749KLDNgqGIsa5v+jgsB04+i 0WuNprPwtP/u/QfHRnq8QStzqUl6iwHc6t6CaLD7UklWDHjSR8xDX+Mk= X-Gm-Gg: ASbGncvLgcElygZBkqgdlRT/dzvrqbjXRj62n/rBJBu2FGJvqxUe+CoaU/qSe9JQMBE fQrvXICOl0PAXLme4LYbm4jMkRgkMN3/3KxfiUhJlHRW3H2G6fl+rn65heI3hFiRu+Rwexz8Qiy qvRSJVPxZFVPaNpduAXnUoxtdSLI8wB1r02xahU4Ceh+T+o3IY1RZdAvLgkJ7NBEY= X-Google-Smtp-Source: AGHT+IGZG6ln0tMa7CS1CFNFcVbhNRqWyOKEg20yaTIpImluXa0ET63squ7v5V78jSMvn4pCH356dl3R2xdaJAJ7x3c= X-Received: by 2002:a17:907:9303:b0:ad8:5850:7332 with SMTP id a640c23a62f3a-ad859840183mr760989566b.9.1748268198202; Mon, 26 May 2025 07:03:18 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 26 May 2025 16:03:06 +0200 X-Gm-Features: AX0GCFv6BpR0rDFkx05xBev_116JKmpdAa9A4SYMMjgohd5ThiQDcqv-oDKO7CQ Message-ID: Subject: [PHP-DEV] Re: [RFC] Clone with v2 To: php internals Cc: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Content-Type: multipart/alternative; boundary="000000000000ed22f406360a682f" From: volker@tideways-gmbh.com (Volker Dusch) --000000000000ed22f406360a682f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 --=20 Volker Dusch Head of Engineering Tideways GmbH K=C3=B6nigswinterer Str. 116 53227 Bonn https://tideways.io/imprint Sitz der Gesellschaft: Bonn Gesch=C3=A4ftsf=C3=BChrer: Benjamin Au=C3=9Fenhofer (geb. Eberlei) Registergericht: Amtsgericht Bonn, HRB 22127 --000000000000ed22f406360a682f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Version 1.1 Update: Array syntax over nam= ed arguments.

Thank you everyone f= or the discussion and for improving this RFC. I'm very happy with the u= pdates 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=C2= =A0possible and make it feel natural in PHP. I got carried away a bit durin= g writing this, and by using named arguments, introduced something that isn= 't used in php-src provided functions, had edge cases that required doc= umentation, and all in all, didn't feel natural in PHP but like an inco= nsistency. 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 t= his was caught and raised in the discussions. Thank you.

If there is desire for named-parameter-as-an-array syntax this shoul= d be standalone RFC with more scope than a single function.

<= /div>
We've updated=C2=A0the RFC and the implementation, removing t= he "Open Issue" listed before, as this change resolved all of the= m.

-=C2=A0https://wiki.php.net/rfc/clone_with_v2


--
Volker Dusch=
Head of Engineering
Tideways GmbH
K= =C3=B6nigswinterer Str. 116
53227 Bonn

Sitz der Gesells= chaft: Bonn
Gesch=C3=A4ftsf=C3=BChrer: Benjamin Au=C3=9Fenhofer (= geb. Eberlei)
Registergericht: Amtsgericht Bonn, HRB 22127
<= /div>
--000000000000ed22f406360a682f--