Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120048 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 36343 invoked from network); 17 Apr 2023 06:32:35 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Apr 2023 06:32:35 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1DE771804A9 for ; Sun, 16 Apr 2023 23:32:35 -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,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-oa1-f49.google.com (mail-oa1-f49.google.com [209.85.160.49]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 16 Apr 2023 23:32:31 -0700 (PDT) Received: by mail-oa1-f49.google.com with SMTP id 586e51a60fabf-187b51ed66fso9209585fac.6 for ; Sun, 16 Apr 2023 23:32:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681713150; x=1684305150; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=XRfh04iYVAw4E0rfmnJ3Yry7NiNODAUlDaHcSVUJ3gY=; b=FkAzKpMIk8pwhK4Uy7e0qGLpN0XF2k4DTjZdSXa0rBZPby4mldB8b3G5Tlmak229/h TWPhS+aiAa4tFXgpmYzayMbKzHaKBmZ/5IDlKa1ayoa5BDUxNvGaiqmBMypjWpwwyJ6q ArZlhxF3tIx4L2VYIA2hvJp9cY6uMU24VbBITDvcNaBCcIM90+tgIxNvlqULIqmk+mgk idaJPpu+POxpEWKYwFE4APNXV5t7TSsDdXib8TEeDprmorTznCXEyKMnxLelBDSsilpV k6+tq7VTgjvU09Jf2VjexUALAjvv/UocUattEcZe/A79c/caIzunn2KH3hLWjjpwM0yN TIQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681713150; x=1684305150; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=XRfh04iYVAw4E0rfmnJ3Yry7NiNODAUlDaHcSVUJ3gY=; b=hGklwoFLpUMtgjfwd663fwLuo9LH5stcagxgG5PX9YqgBKEpGQhw18H65brdFF1RO2 zDUcsIpCyyr05CSillAe/PMw3tdBlEXo29PK44NaEbCubeA4WjTIbsnVFYkD1tNNVBx7 Ap7ZbDuvQPk4tYFuRpWe4x7CuBu6OjSX5z8N4yj+byZtONsUBjSrR4VRLyy81t6rmS8o xSgs+H8KyN3m8mxXhfNcghQkPiLAXIHPzlIIiQR1E+W6vtBr1911pFzC1qgrJ58lqXZP iZMbdqNkToIG+/HpRTeZnsMQepkfAmTOHs0J5N3EWVLc3eCogj8r4A/GLC2n0YBVZ2R8 Utjg== X-Gm-Message-State: AAQBX9fG7s3IppQfz6xBIL7eLMQd99HAZZcER9EQgSa3N5ulYUrg6Dud To6bwXf8RjcxU1xQqYaVu844L7x9RzOOolnn/GhxBLAXRno= X-Google-Smtp-Source: AKy350aejqbANZedrs35vGNn8GIUbz4pct1rwLkegm9xRLR2F6/Q4Dqmd0aDf4vCChofxfS4ag2PeChqO/SXLjcbfFw= X-Received: by 2002:a05:6871:113:b0:187:9bf2:af63 with SMTP id y19-20020a056871011300b001879bf2af63mr4994107oab.5.1681713150491; Sun, 16 Apr 2023 23:32:30 -0700 (PDT) MIME-Version: 1.0 Date: Mon, 17 Apr 2023 08:32:19 +0200 Message-ID: To: PHP Internals List Content-Type: multipart/alternative; boundary="000000000000f3093005f9825a54" Subject: [RFC] [Discussion] Clone with From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --000000000000f3093005f9825a54 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Everyone, Quite some time after mentioning the "clone with" construct the first time (at the end of the https://wiki.php.net/rfc/write_once_properties#run-time_behaviour section), finally I managed to create a working implementation for this feature which would make it possible to properly modify readonly properties while simplifying how we write "wither" methods: https://wiki.php.net/rfc/clone_with Regards, M=C3=A1t=C3=A9 Kocsis --000000000000f3093005f9825a54--