Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123335 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 qa.php.net (Postfix) with ESMTPS id 23AD81A009C for ; Fri, 17 May 2024 16:45:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1715964406; bh=HEe1zlpBIcedo4FbTX1a3TdtgGyZbiHj5B/7mzFe9iA=; h=In-Reply-To:References:Date:From:To:Subject:From; b=b9cfdAo5iGMtu4d7NCOL4kzFdKbiDYQccxAcP7oVsVp9h+GPJMWDucNDHBsDBir5s mySkQjiYnzFM73v3+rDPi/7D1TX1uSs4i2b+pltwHwfCfgGcxckbxavI4/liRYuvir gGM+QhztPt06581uuOPBsTtVrTEWrFqYKCzkkiWy/woakPSI5aF0sGKjuiQuoJxfw3 UrvlbUcqVRSOVrDR2cmbN9cm1JiBsedGMzxIlSJbLCoTjEhMOMK6lbEW9h2JeLv4YG szSWA4UBri7YkSDap4Xbjm+NSVYgL50n492Cl3LdcOLcKeh5tVpYtqebiOCDM+0vRg nL37fIlIiF1Kg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 66C771804BC for ; Fri, 17 May 2024 16:46:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from wfhigh6-smtp.messagingengine.com (wfhigh6-smtp.messagingengine.com [64.147.123.157]) (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 ; Fri, 17 May 2024 16:46:44 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfhigh.west.internal (Postfix) with ESMTP id 3ADFE1800149 for ; Fri, 17 May 2024 12:45:50 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Fri, 17 May 2024 12:45:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to; s=fm3; t=1715964349; x=1716050749; bh=AYZRHteP4KgCDF0LL7WAr OyfMk+kSXeyNtRUXicyPyw=; b=BLqjOYkOq86zT3O0Y9F5N67bwOgndlZwQwPbP 535Hqk7AkgRYulSDkZDQToEA0eat+ROt5776BcnH6UpDOZ4NCpgiWeYRXyt6hbP2 TgDcCCKoATEraP4L4hP6AbaEc50h7KPoq5GoQKU1psMc6MJ9QJnOD246C6wr6XO9 pyPPpvpTHThWN24BoUa86VtOgCxLkeWPrycE8D71JwNpBJnQmvxlqvS6UE7elFd2 BJ0t9/gAAthM9ZVYyDScxrV20dGc1Kc4aAniA5HdT/p5V4Zg3T/5Wz9GlHe/ya5G ev+SIBxmGivSse7p9hfUOyNhHOfzigLgrKLcOPofT85G/p9lA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1715964349; x= 1716050749; bh=AYZRHteP4KgCDF0LL7WArOyfMk+kSXeyNtRUXicyPyw=; b=U HatbhBkDXH2qEyONl8ZJUGPdxiKA6p6ko3jMPYK8JEKLRzR0a7e4WKCjVZcNmjks nuIcVG3Bvdj1OKuaBW+A+RuinkJIrnD2l0DpL7Q3mwonk2MFvo8XRN6an3/Xii2O 5HQ4CBu2Xhx7i26yLGG55piMigbT+NdsA04VVpgnxkr1MGULlvT5IHqNVTp6R3Yw vBmT2yAHWiGiM699FJk+8D7IO+ihj1GAgX7g0/QhZJdTCin5UcPvKxEtU7i6qDBM BPk3eI1GZ/RpHWkzTZ+VejMH2tA3rIqr72vUDVCkKrndvbw79emEMY3F4ncN9sre 62IzD2ixW1JUNfNkkb5dg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdehgedgudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgfgsehtqhertderreejnecuhfhrohhmpedfnfgr rhhrhicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtg homheqnecuggftrfgrthhtvghrnhepffffffejffdugfegvedviedttedvgfejffefffej leefjeetveehgefhhfdvgfelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhm X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7BB851700096; Fri, 17 May 2024 12:45:49 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-456-gcd147058c-fm-hotfix-20240509.001-g0aad06e4 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Message-ID: <45067348-cc06-431f-a249-d5aa38125000@app.fastmail.com> In-Reply-To: <02b00330-1c34-4f3e-a167-0c0c4cc78ac7@bastelstu.be> References: <8432541c-ad13-4682-9034-bcfe47e142ff@app.fastmail.com> <02b00330-1c34-4f3e-a167-0c0c4cc78ac7@bastelstu.be> Date: Fri, 17 May 2024 16:45:29 +0000 To: "php internals" Subject: Re: [PHP-DEV] Re: [RFC] [Discussion] #[\Deprecated] attribute again v1.3 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") On Fri, May 17, 2024, at 3:49 PM, Tim D=C3=BCsterhus wrote: > Hi > > On 5/17/24 17:02, Larry Garfield wrote: >> Why is the attribute not allowed on classes? I think it would make s= ense on every language structure, unrestricted. (Including classes, par= ameters, everything.) > > There is not pre-existing semantics of deprecating a class from the=20 > engine PoV. > > The only things that can be deprecated on the engine level as of now a= re=20 > Functions, Methods, Class Constants (incl. Enum Cases), and regular=20 > Constants (those do not support attributes). > > Allowing to apply the attribute on classes is therefore left to future=20 > scope (as mentioned in the =E2=80=9CFuture Scope=E2=80=9D section of t= he RFC). Adjusting=20 > the attribute to also apply to classes once the semantics are decided=20 > should be straight-forward and thus be an implicit part of the process=20 > of supporting the deprecation of classes. This would be helpful to include explicitly in the RFC, toward the top, = because it's the first thing that came to mind when I saw the initial co= de block. >> The user-space definition of the attribute is invalid in the example:= It declares properties AND promoted constructor args. That can/should = be combined. > > I don=E2=80=99t follow. Do you mean the top-most codeblock in the RFC?= It does=20 > not use constructor property promotion. > > It=E2=80=99s the stub, intentionally omitting the method body. I=E2=80= =99ve added a=20 > placeholder comment in the constructor body to make that clearer. Ah, I misread it. You are correct, it's valid. It's so rare I see a na= me in both the constructor and as a property these days. :-) --Larry Garfield