Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123491 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 A539A1A009C for ; Mon, 3 Jun 2024 16:03:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1717430685; bh=U7vCFE5oTMljdfMkRjq8fPStK/Ea0+lDu+ITIoQaYtk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=FWbiJLGJmLGPuIxBfTCq2luWW1e+v48yQEYnUJF98yiM7UrzrByADa4f80uNnsFu1 MkWl3Ym3C8ha/kvENAUbsIXH7alYnGG7LQAmqTcLR6Cn/JzIxvll1XlE8B2NltCFT7 d411SzuSW28KUYHhuI1edUspKVCHl42frQGYqDwIBRZFa/PwRa/5MEMyf2svYYxnYk jl+8maIHN4B7rpQNH0xPutQXI9l1Cm67p4LAk3Vsm6OFSHZfhhlfnABDRqPuIUUPFZ FgJrGcjb0SaiT421eGubAnKgY9m54NEZe/j8nnyNzS7yhWADm5AaRHN+JTdapNWxli Mm2akcga/XhyQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 14CD8180003 for ; Mon, 3 Jun 2024 16:04: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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,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=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 mail-oa1-f46.google.com (mail-oa1-f46.google.com [209.85.160.46]) (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, 3 Jun 2024 16:04:44 +0000 (UTC) Received: by mail-oa1-f46.google.com with SMTP id 586e51a60fabf-250928a8580so1472504fac.3 for ; Mon, 03 Jun 2024 09:03:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717430620; x=1718035420; 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=chscCmmtO0lSfTluroq3S4awxokMvphne1LQXaqwJ08=; b=RoVPxFnD4UlrRMimdQW5XGPhgdPl5PcmIMWHglR5i6Kd79mpPlPNr/kVeYOS9RmQzE DKqFgXOm/d2QzBPv1dPtXMUK5h6/hzu5/my+GTMmPMdqaGcKfPFXqBILuit/oHgBweKp PFlvByVaDJZxEFBtVNYxIXRVvLXFmeaUltLBIPZJusn82q60cdi0iW8/U9lw9SOjSqoT eJIMt5E5bZpGEWjCwuMezpP1Bd/lxdGpNrZ2LMHEENrlDQ8GiP83nnU50Xmi6LTLJdtJ 0jRgDWY/Zm8SZ+Lmvi9ncv7erQSKfcJ765G/+NlTanVMKnfWFbduLzMp/ZgIcD3Pol7F RhPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717430620; x=1718035420; 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=chscCmmtO0lSfTluroq3S4awxokMvphne1LQXaqwJ08=; b=b1y0/wkJHkxDMCupGf++yJ+xC920G4Mk//64lMJgXFowGeorypDjPH+f1orRaA++cb JhsUXrPcLCDyuTRKLvBFSW9mRd2u0r/5ySAao5wPW7d/k7yoRnBvdque3CdmDYXeO4w9 9tbTXOgrdsrF6xHEsQFkSmWBJ03n1BOR7rwFDiJjCXOf3gErAlvHKq5k/v1TDzaa4IcM G/thjKVQIEKQroPwwlXktC/9P6iVTVDAE3Po1PDsO5IPW2f2FNyfAXacc1hyPmKim4kc apB54DuOenqK2RXvHho5ZKBxnmX+r/8Gb8Kyf/W04mup9FYVIiHM9vEDgbAkZ1MXFKLC ip+A== X-Gm-Message-State: AOJu0YwEwUEomBAU0JhhRPOC+xlqlmqOAvZ0pJJbDRqN7jP8oky2AJb9 rau4HJ8ferPtMzL6KjpAqB55VcdRrqTe79rPX7zTfloDPt2RGtRazw310Vl43PsL9HQMDL3vZur LO71BQHxOpxVJxqYEhFy2rw4cVTO77g== X-Google-Smtp-Source: AGHT+IHVT8fjgLIS3NxECOzAkK8lBXfBvJ/z/JAuUC1rSsbXkWAEw7Ljx2IEFWhCguCQCagjieFwiS2lO7rYC9Ww6fE= X-Received: by 2002:a05:6870:440a:b0:24c:b654:c17a with SMTP id 586e51a60fabf-2508bc1e98bmr9861853fac.45.1717430620132; Mon, 03 Jun 2024 09:03:40 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 3 Jun 2024 11:03:28 -0500 Message-ID: Subject: Re: [PHP-DEV] [RFC] [Vote] #[\Deprecated] attribute To: Ilija Tovilo Cc: PHP Internals Content-Type: multipart/alternative; boundary="0000000000000a23120619fe7af7" From: mweierophinney@gmail.com ("Matthew Weier O'Phinney") --0000000000000a23120619fe7af7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jun 3, 2024 at 9:46=E2=80=AFAM Ilija Tovilo wrote: > Hi Matthew > > On Mon, Jun 3, 2024 at 3:15=E2=80=AFPM Matthew Weier O'Phinney > wrote: > > > > On Wed, May 22, 2024 at 2:24=E2=80=AFAM Benjamin Au=C3=9Fenhofer > wrote: > >> > >> The vote for the RFC #[\Deprecated] attribute is now open: > >> > >> https://wiki.php.net/rfc/deprecated_attribute > >> > >> Voting will close on Wednesday 5th June, 08:00 GMT. > > > > I have voted no for a few reasons: > > > > - Ideally, I'd like to be able to mark _anything_ as deprecated. In > particular, not being able to mark a _class/interface/enum/etc_ as > deprecated makes this far less useful. > > While it's true that extending #[Deprecated] to classes would be > useful, deprecation already exists as a language concept, and it can > be extended to class-like structures without a BC break. > Right, but I'd rather have the ability to have it _now_. It's far less often the case that I'm deprecating a single method or constant, and more often the case that I'm deprecating a class or interface. Not having support for those immediately makes the feature "meh" for me. > > > - The "since" parameter is basically worthless to me. It's very easy to > find out the last version that wasn't deprecated. What would be far more > useful to a consumer is an argument indicating when something will be > removed (e.g. $toRemoveInVersion, $versionForRemoval, etc.). This helps m= e > as a user plan for the future. > > Did you vote yes in the secondary vote by accident? I voted no on the > $since parameter for the same reason: > > * "How long have I not fixed this?" is not a particularly useful > question to ask. "When do I have to fix this?" is more relevant. > * The format of $since is intentionally left unstandardized, and it's > unclear (to me?) what it refers to. For example, some packages are > split into multiple, smaller ones (e.g. Doctrine) with diverging > version numbers. The sub-package version number may not be useful to > the end-user, who never requires it directly. Similarly, referencing > the main package version may be confusing, especially if the ranges of > recent main and sub-package versions overlap. > I voted yes on it because it's not _worthless_, and if the RFC passes, I'd rather have it than not have it. But I agree that the lack of a standard format for it, and the lack of a parallel "will remove by" argument make it far less useful. > > --=20 Matthew Weier O'Phinney mweierophinney@gmail.com https://mwop.net/ he/him --0000000000000a23120619fe7af7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable



> - The "since" parameter is basically worthless to me. It'= ;s very easy to find out the last version that wasn't deprecated. What = would be far more useful to a consumer is an argument indicating when somet= hing will be removed (e.g. $toRemoveInVersion, $versionForRemoval, etc.). T= his helps me as a user plan for the future.

Did you vote yes in the secondary vote by accident? I voted no on the
$since parameter for the same reason:

* "How long have I not fixed this?" is not a particularly useful<= br> question to ask. "When do I have to fix this?" is more relevant.<= br> * The format of $since is intentionally left unstandardized, and it's unclear (to me?) what it refers to. For example, some packages are
split into multiple, smaller ones (e.g. Doctrine) with diverging
version numbers. The sub-package version number may not be useful to
the end-user, who never requires it directly. Similarly, referencing
the main package version may be confusing, especially if the ranges of
recent main and sub-package versions overlap.


--
--0000000000000a23120619fe7af7--