Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120235 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 62706 invoked from network); 11 May 2023 17:06:48 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 May 2023 17:06:48 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CD635180382 for ; Thu, 11 May 2023 10:06:47 -0700 (PDT) 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,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS24940 176.9.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 11 May 2023 10:06:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1683824806; bh=EnfTQuvAX2c6WEyvETclXbnkggB7ohJh1gj85q596xk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=mkpUmDZ+ctyfjxAKYRXphdKp+tr8ZHO/r81NzgxRiH+jS2fGEXEnJiZkrNhjVKqEO pridgz3b5znGVJym1IBGeb+OHglGtqFllLoEK4mAyyVzTKavdK3YAPYsVUDtGfuJ95 Yu/ddHn+oYRMnDImLdltsyaWoL8cqjkZ0S/bHl1fD/yYC13IAT0pzqWIzEuu0p0KJu /HeEsX2DBS7GrJanVPKk4fHrdSKaiSabtvzFpBDJIYxWqflTNhMl6Hf3COYY6ebctT B2Ky9ibb/OXlYUSe+YNFywMGJ4RY2S30zkj3HyFdx8Hp2TeL9U+s/vhB/JmVMcF+jb aKEVEcubl8JKA== Message-ID: Date: Thu, 11 May 2023 19:06:44 +0200 MIME-Version: 1.0 Content-Language: en-US To: Dan Ackroyd Cc: =?UTF-8?B?TcOhdMOpIEtvY3Npcw==?= , Larry Garfield , php internals References: <9ab0173f-a6f2-66f6-3ab3-d5f0c44feb05@bastelstu.be> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC] [Discussion] Deprecate functions with overloaded signatures From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=c3=bcsterhus?=) Hi On 5/11/23 18:58, Dan Ackroyd wrote: > On Thu, 11 May 2023 at 10:36, Tim Düsterhus wrote: >> >> Would it be an option to just deprecate everything in PHP 8.3 > > As I said before, having at least one version where the new versions > of the functions are available, and the old versions aren't giving > deprecation notices, is the 'cleanest' way of refactoring functions. Right. Replace "8.3" by "the first version after the replacement is available" in my previous email. My main question was … > Deprecation notices only deliver their value when the old versions of > the functions are removed, and before then are a cost. > >> It doesn't really feel right to decide on >> a deprecation for 9.0 / removal for 10.0 at the current time, but >> deprecation in 8.3 + removal when it's ready seems to be okay. > > I think I don't understand your concern. > > If a problem is discovered with a planned removal of something, people > on this project are mostly reasonable*, and a small RFC to adjust to > the new circumstances would be very likely to pass. … the following: I wanted to know if "Deprecate in 8.x + not remove in 9.0, but only remove in 10.x or 11.x" would be an option, because I feel that it is more useful than "If we deprecate in 8.x then we MUST remove in 9.0, that's why we're already making deprecation plans for 9.x, so we are able to remove in 10.0" All the discussion so far had "Deprecate in x.y and remove in x+1.0", but not "Deprecate in x.y and remove in x+n.0 with n > 1". Best regards Tim Düsterhus