Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123490 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 2BAAC1A009C for ; Mon, 3 Jun 2024 14:44:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1717425957; bh=Psfnhkh+5wNjRy7diAUmRM/t6IAU2VmYiYAFvkROC8U=; h=References:In-Reply-To:From:Date:Subject:To:From; b=KmK/XP19ibBX4aljjw6VeoQXj4JP0GSKADHf9MEeVN1WbCxOwJ1wixAFzm1S8yOxA iGXcwSg6DMt0gs2CF3mgEe1QJYVuVKEaaq5B6T7zLHQU/RgKFtnnEiWDha822aW3Z0 AqmnOmxGxm/ZPW7TqM/gd9ykON6VvM2WvR9HyN5YAYv6/Y1KT1+1R9ubnIg65TSXNE Tr+uEc2+KINwM8d2f2kFFzUbowmjQ0gbL0unOAdfj0who5gQw5a60JBFK87SterGjR gRk32+Iz7KZ/xjlTR1cGfmyIr9EHM9V2dayFtwQVi5Ox/6afu+xdImWLfEQl3mdU+m 9A8vr/9a55vOQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 927BF180057 for ; Mon, 3 Jun 2024 14:45:56 +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=1.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, FREEMAIL_REPLY,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) (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 14:45:56 +0000 (UTC) Received: by mail-qk1-f179.google.com with SMTP id af79cd13be357-794ab0f7214so201238985a.3 for ; Mon, 03 Jun 2024 07:44:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717425892; x=1718030692; darn=lists.php.net; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Psfnhkh+5wNjRy7diAUmRM/t6IAU2VmYiYAFvkROC8U=; b=aOo4/4gu4c31Dn0rLHW8nxmdmRBtum1m3itpgXZmvRdyGHztuTfK1hq2IqXfT0MBBR VahcOpqpNiyr8rg6ed8c9GWHPp4gz+XtN8tD+r7Nli4bgu3hbwnMR42engYM8WngiYa4 Fcr9FOeQ3w2PNGg5CTK/Ye5lX2CcdDZJyx2NSlR/D/UWel68vSdWtaTGm9uwAP67pVNt 4bX2LmcrVqVYS45nRLHXv+tpJ789Smrt1aO8vBJl0wf4rRIxRP8/6IFXMK9JC+rAFd39 YndkJyzh8r4cUoORlXkNKuI1Pl6Vc6wEymUtzAYRurNs2kyiVxt88i5MwAGk9vTUrybU rWFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717425892; x=1718030692; h=content-transfer-encoding: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=Psfnhkh+5wNjRy7diAUmRM/t6IAU2VmYiYAFvkROC8U=; b=xIfdVeKjWiCY52ZT4HR2pOk2YtweA/tYAfdQo3th6B5VCakxwDZWNlgmWLtZtnZy/Z soXvM0le+xsJURA7SCN8NkCFDE/7kSHUnxraDU8MGLpQWrmZZEFWRFsYHyJe3Y1ZAVlj ly+zrLo9JhmO0OU02PFlnjditki9fkAkJreOpirB+P5078eJZU5fEec1UGYW42SyQAma ZAeCeFygGSi23wtQJTWskjsJNh3RUohIZDet7XsleAdejphT16RaITqUnNyFn6PxMuJb 1uJcz8I9x0eVonhhgytfkPc4tT/ljkpSL642HbeNxrb3YMK+efo1ZgfTxMvx9w81YMAe lQaQ== X-Gm-Message-State: AOJu0Yxb8Del/IGRo51PWXs2+jfdyHmkDoMQy/5ACjJQORUF/7Go1Jsq t2mHasRiOGDuW/P1LB6vwksWII4TE4hQZzuevN5F+HOgYq5eyfy//5RYinN0I+Y1rvlcu31atDJ 0173AyIY31fefV6ADDPdtUzGrbPtyMNxQ X-Google-Smtp-Source: AGHT+IGpGyi1sfAkJvNUSu1BsCcG6ouwTh2dNeApoa/+FnSC6LY1hYYvJ/cUjchrsmDhVeDm6szIECVMjXmfusYbatU= X-Received: by 2002:a05:6214:5a03:b0:6af:690f:e7c7 with SMTP id 6a1803df08f44-6af690fe9b5mr51125746d6.47.1717425891569; Mon, 03 Jun 2024 07:44:51 -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 16:44:40 +0200 Message-ID: Subject: Re: [PHP-DEV] [RFC] [Vote] #[\Deprecated] attribute To: PHP Internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: tovilo.ilija@gmail.com (Ilija Tovilo) 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 parti= cular, not being able to mark a _class/interface/enum/etc_ as deprecated ma= kes 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. > - The "since" parameter is basically worthless to me. It's very easy to f= ind out the last version that wasn't deprecated. What would be far more use= ful to a consumer is an argument indicating when something will be removed = (e.g. $toRemoveInVersion, $versionForRemoval, etc.). This helps me as a use= r 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. Ilija > - The "since" parameter is basically worthless to me. It's very easy to f= ind out the last version that wasn't deprecated. What would be far more use= ful to a consumer is an argument indicating when something will be removed = (e.g. $toRemoveInVersion, $versionForRemoval, etc.). This helps me as a use= r plan for the future. > > -- > Matthew Weier O'Phinney > mweierophinney@gmail.com > https://mwop.net/ > he/him