Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119349 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 78717 invoked from network); 19 Jan 2023 11:10:51 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 Jan 2023 11:10:51 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 947D31804F7 for ; Thu, 19 Jan 2023 03:10:50 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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-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 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 ; Thu, 19 Jan 2023 03:10:50 -0800 (PST) Received: by mail-ej1-f41.google.com with SMTP id qx13so4638224ejb.13 for ; Thu, 19 Jan 2023 03:10:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=3x3dWgJgtCGZs8/660k1n10c6FgLKr+TANt07wi1eXg=; b=Hloge3bHlc8wvsyyvsGazyMiXPKFk2Zr2mvBstzZxSc4MMYoMPs5oodNjsn4dGc/Zn ail5N5peG02q2/uHfYvMZEwR1gsWulTXs1hJLdG4SO8DmPZt8YtBAN+gtGyT+rbU1tNZ XbalGJieak2u1bly6rpEY3dqaIC5c9r2sWxZ9sg1+FWwCK0H6E8W2wvr5CTy7hImpK+9 Bd/RFbxhNLSuP4hh+sXcLGKB7m1i3OdOPrLIKr0gx7gaJ2YCfSf5iD3fvexIppoIsaW/ oAIthqUh2nNPqdWGXWJ4Wy2kUx9X1nPuQsiMoSFvKqGOJI86CqwInQtrTpPyp2O2RlI3 8O0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3x3dWgJgtCGZs8/660k1n10c6FgLKr+TANt07wi1eXg=; b=aH9xEMU5dfU+h3/Bed7WMvfmlT2/1/Q2/D4Xw3A8q7AtxfVCcH43r/YJIANtIzFnFj yM1aihBoR6igepp3A2TXZ+8sSTx55j9HF3WW0YgoKQy/vNL7zUAQIs7H8XUxiDVTfjzl EvDTc4eFtGqo4/6hNKyhfu09f5yBSFook4ZwvHBOtQTDJmEeFMcENq9qRSguGxjbq+3e rMEtakGtIaxj7zp8c/xYNT7+UT77AlNFBq0X/Xg00KwK0yUgnUXsvx36wVprJDnTbz/m qtUT1HqeTdaRRerV8olxdDol8gKpDM4xVshSSQoDjRqDCqblB7gqpNThZuEgwTEfLIqv ltPQ== X-Gm-Message-State: AFqh2krVq+2LE1wpi/TrZzJoqLET5wJ6jdXnliBR7+TtISFEDS8t1zMO HH5IbUvk9IjemGSvxyu7Umc= X-Google-Smtp-Source: AMrXdXufUtBMPkdkAWotdzCCvjggPLAeuLUaYlNItD8hwrYmdxKAvfF/F4+jHUefiW8DZmYQHxv8cw== X-Received: by 2002:a17:907:8c14:b0:84c:e9c4:5751 with SMTP id ta20-20020a1709078c1400b0084ce9c45751mr8261868ejc.74.1674126648798; Thu, 19 Jan 2023 03:10:48 -0800 (PST) Received: from smtpclient.apple ([89.249.45.14]) by smtp.gmail.com with ESMTPSA id gh9-20020a170906e08900b0086f4b8f9e42sm6257705ejb.65.2023.01.19.03.10.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2023 03:10:48 -0800 (PST) Message-ID: Content-Type: multipart/alternative; boundary="Apple-Mail=_463764A9-6702-4C38-8232-4D38B215DFF0" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) Date: Thu, 19 Jan 2023 12:10:37 +0100 In-Reply-To: Cc: php internals To: =?utf-8?B?TcOhdMOpIEtvY3Npcw==?= References: X-Mailer: Apple Mail (2.3731.300.101.1.3) Subject: Re: [PHP-DEV] [RFC] [Discussion] Readonly class amendments From: claude.pache@gmail.com (Claude Pache) --Apple-Mail=_463764A9-6702-4C38-8232-4D38B215DFF0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Le 19 janv. 2023 =C3=A0 10:12, Claude Pache a = =C3=A9crit : >=20 >=20 >=20 >> Le 19 janv. 2023 =C3=A0 09:01, M=C3=A1t=C3=A9 Kocsis = a =C3=A9crit : >>=20 >> Hi Everyone, >>=20 >> As discussion apparently stalled, and since we managed to update the = RFC >> with the recently brought up arguments, we would like to start the = vote >> soon, possibly early next week, unless someone finds a new topic to = discuss. >>=20 >> M=C3=A1t=C3=A9 >>=20 >=20 > Hi, >=20 > One shortcoming around readonly classes that I just figured out, is = that it is not possible to use them as anonymous class: >=20 > ```php > $c =3D new readonly class { }; // parse error > ``` >=20 > While it does not makes sense to have `abstract` and it is not useful = to have `final` in this position, on the other hand, it is perfectly = reasonable to have readonly here. (This is especially problematic in = case we keep the limitation that only readonly classes may extend = readonly classes, because in that case, an anonymous class could not = extend a readonly class. However, this is an orthogonal concern.) >=20 > =E2=80=94Claude As I think that this limitation is most probably a bug and not a = deliberate decision (the RFC introducing readonly classes did not = mention restrictions around anonymous classes), I have open a bug = report: https://github.com/php/php-src/issues/10377 =E2=80=94Claude --Apple-Mail=_463764A9-6702-4C38-8232-4D38B215DFF0--