Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119342 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 60267 invoked from network); 19 Jan 2023 09:13:12 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 Jan 2023 09:13:12 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 24D0918050B for ; Thu, 19 Jan 2023 01:13:12 -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, 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-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (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 01:13:11 -0800 (PST) Received: by mail-ej1-f54.google.com with SMTP id v6so3938174ejg.6 for ; Thu, 19 Jan 2023 01:13:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Jh03JGYiZmRvHGwTPefXJ6lX6XUZ35utb/FxtRWvnpQ=; b=B+IRBmXkwBMnQiNpiampaCMEf0R2sqFeqfJzHgcSzjOdvG2qZmgPrp+l/Zq1YTg+74 o/knqZAyRCpi7Vaaxv9kK5Odl9Ovbu3yGS7Gk9hGphof+wLm5T2hKAOTzFUyaru/PGWn qHrnN99Z3rVqafGB8KiYO/E3OPzV/PEc1Rd/vvqIH/+89r8OTe73uCy+DNKGosBagzfS oe//qEIYsMnrTJm4WPirMWI27FtDreC2F0unW8f+EC3h7Ehz3lBwyqj8jXhjzHayh/Gm F4DB/DUrn4n32G/n4P0KAaR5TmwqtxSAMfVqY5OfMP6xeT8RZkePW16mUOOPt12wUN6o O9Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Jh03JGYiZmRvHGwTPefXJ6lX6XUZ35utb/FxtRWvnpQ=; b=59VLgCealFPT7K9J196ERkF3KqkYcvSEolft/YLRsNK9KPrjmPydbaSwCc4DJ7XUw1 2SLH5Xo+we7MGtFTldmN9t7d6VUTxvR1QH/FW1/0iQmXf3Y3finVtXJFg6s4G5TRUtav k9rU0uea7V+BY4iE/pB3gngS0S6L5e3Jjc07Ymhk2ruNLyot5kMVuDBbTdItj5S+CNxp s9dfN1ybL+MxWUUP5LlEmEl06MwjM38A9mVZlJ8B5wRqEK/brzv8UAWNFOwvGcFHybf+ lFYmK0OMj21bUKM71UfcgfwPgzr9UMZsQkPUckt+FJTLKjDUHaMv8ck1f5NP7GWnsicB Fc7w== X-Gm-Message-State: AFqh2kqeh+myCxlYTKeSiDDPfeuQTpa6kkf8Onew2DIETMtEIk7EVMlz dA7XLkQE43FwZjHKca0VUIk= X-Google-Smtp-Source: AMrXdXstJgjHncMOGs05t9LIAQaTqKpmoKaFID40HO+s0+TgCb68gn9nhrKZ34ZjuwCo+gGLwuRWAg== X-Received: by 2002:a17:906:9405:b0:859:1a3c:8b5c with SMTP id q5-20020a170906940500b008591a3c8b5cmr10476472ejx.53.1674119589650; Thu, 19 Jan 2023 01:13:09 -0800 (PST) Received: from smtpclient.apple ([89.249.45.14]) by smtp.gmail.com with ESMTPSA id d14-20020a170906304e00b0077077c62cadsm15919261ejd.31.2023.01.19.01.13.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2023 01:13:09 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) In-Reply-To: Date: Thu, 19 Jan 2023 10:12:58 +0100 Cc: php internals Content-Transfer-Encoding: quoted-printable Message-ID: References: To: =?utf-8?B?TcOhdMOpIEtvY3Npcw==?= 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) > 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 Hi, One shortcoming around readonly classes that I just figured out, is that = it is not possible to use them as anonymous class: ```php $c =3D new readonly class { }; // parse error ``` 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.) =E2=80=94Claude=