Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120314 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 96327 invoked from network); 16 May 2023 14:26:29 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 16 May 2023 14:26:29 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 300371804F7 for ; Tue, 16 May 2023 07:26:28 -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=-1.1 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_NEUTRAL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS30827 82.113.144.0/20 X-Spam-Virus: No X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) by php-smtp4.php.net (Postfix) with ESMTP for ; Tue, 16 May 2023 07:26:27 -0700 (PDT) Received: from [127.0.0.1] (unknown [50.219.178.70]) by xdebug.org (Postfix) with ESMTPSA id 6C1A710C066; Tue, 16 May 2023 15:26:26 +0100 (BST) Date: Tue, 16 May 2023 09:26:23 -0500 To: internals@lists.php.net User-Agent: K-9 Mail for Android In-Reply-To: References: <9ab0173f-a6f2-66f6-3ab3-d5f0c44feb05@bastelstu.be> <9F928894-199E-4C46-A590-136BDDE035F7@gmail.com> <68c1b984-1bcd-4dfd-8499-65fe392d7783@app.fastmail.com> <731143A6-D1A2-47E1-B878-8F4C5906139C@gmail.com> Message-ID: <2B7287AB-7619-4066-B136-386FAD76E3E0@php.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: =?US-ASCII?Q?Re=3A_=5BPHP-DEV=5D_=5BRFC=5D_=5BDiscussion=5D_Deprec?= =?US-ASCII?Q?ate_functions_with_overloaded_signatures?= From: derick@php.net (Derick Rethans) On 15 May 2023 13:38:56 GMT-05:00, Larry Garfield wrote: >On Mon, May 15, 2023, at 6:36 PM, Rowan Tommins wrote: >> On 15 May 2023 09:54:41 BST, "G=2E P=2E B=2E" wrote: >> >>>Why are we assuming that PHP 9=2E0 is going to come after PHP 8=2E4? >> >> Historically, PHP has had a major release roughly every five years=2E T= he=20 >> main exception is PHP 6, which was never released - but whose major=20 >> features became PHP 5=2E3, five years after 5=2E0, and six before 7=2E0 >> >> I think planning a rough timeline is more useful to users and=20 >> contributors than waiting until there's some exciting headline feature= =2E=20 >> Otherwise, it becomes tempting to sneak in breaking changes in 8=2Ex=20 >> because "we don't know how soon 9=2E0 is", or to have a rush of changes= =20 >> because "we've only just decided 9=2E0 is soon"=2E >> >> It also helps avoid putting a release number on an experimental feature= =20 >> that might never arrive, as with Unicode strings in 6=2E0; or that migh= t=20 >> turn out to be less important to most users than other changes, like=20 >> the JIT in 8=2E0=2E > >I agree entirely=2E Setting reasonable expectations for users to plan ar= ound, such as a known 5-years-per-major cycle, helps end users far more tha= n "whelp, we did something big, version number time!" > >Tangent: If I were to put together an RFC that set out such a 5 year cycl= e expectation with reasonable guidelines around when things could be deprec= ated, would anyone actually support it? > >--Larry Garfield > I would=2E With some remarks=2E=20 I think that having a 5 year cycle for major releases is beneficial=2E First to users as they know when all the deprecations are being rolled up = into behavioural changes and (potential) breakage=2E But also to us, as maintainers, as it could signal *when* it makes sense t= o work on deprecations, behaviour changes, and code refactoring (that's mor= e likely to break APIs and extensions)=2E IMO it would make sense to tweak what sort of user land deprecations can b= e done in the =2E3 and =2E4 releases (probably being more strict) compared = to the =2E1-=2E2 releases=2E We'd want to enlarge thr time frame for signif= icant changes more ahead of time compared to more minor ones=2E But I do think we ought to be weary of making these rules, in when to allo= w to deprecate what, too strict=2E A rough set of guidelines makes IMO more= sense=2E cheers Derick