Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120643 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 59102 invoked from network); 20 Jun 2023 10:03:10 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Jun 2023 10:03:10 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4E4161804C9 for ; Tue, 20 Jun 2023 03:03:07 -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,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FREEMAIL_REPLY, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 20 Jun 2023 03:03:06 -0700 (PDT) Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-3113dabc549so2788455f8f.1 for ; Tue, 20 Jun 2023 03:03:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687255385; x=1689847385; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=/ImM21gZEyOuQHGGWedu9n5o+rTvIZ9GwQe/OTc78hw=; b=mlgG1+CeexbcCrj1gpnSmURDIbks06aLRnRF/aobSyoV3ndR0xC5EKtG/pgb1yM/fn ZuY+DKCUVibVLfXMonRkSPRfUdxv5LMMIJTA3SOeGA7JdlXx6HhEMDJBGfKPBiejAwfR DGJNhaGxGXaTuIOwYC6S6h/4PkdFBVKQY2pDOxaN/WaOoXWgd1z+3Rcv4YdH8ytuvlCw GlO7JThx0DiYJir72iTRtcf0lHVKr6H8J2rABWo92++TSC3tkzYH/qXvPLP9dIYytWKI aRAVsK3ddVUOCOJ+9Dm5G382lwBtZUgTYdy81cPbljRmXxpUFNo9Djc+s1nGkZRpDptS 4k2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687255385; x=1689847385; h=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=/ImM21gZEyOuQHGGWedu9n5o+rTvIZ9GwQe/OTc78hw=; b=MkActpZu9PGfe/Z/5l1HzdKsaplUnTGnA/OWDw7D4v8cUGrWmMrUr0z6T8YMOg05Ff l5/oxHGzoprXGwebm+9b9/acoxfaTEpRp3RNYLB49tmpjX5nVPcU+Y7Nz5mXhf6EiaVc iLcX7oYffd5fu6xEhPuHP+I2wZqPrv9apm6xu1/68LNIFFZpFpcNpaEuOpouP11/k2kR PF2KErNmrstXlsmZ/Rm56EiBDUGtr5n8TW639mjn7LbGMsT2wrp0Qea+S6ltlH7mKNyd yQHB87rVLQ1VwLTkhOTE/zIrN0trnysJMVfpySPdjzLVl+KD8982dvG/eup8Ucyxx1rq Rb9Q== X-Gm-Message-State: AC+VfDzSdSkDWCWDYA0rsjyB9KaAHslO2EwhRE9aK3f3cXZLNS6AzK2t NNxSo0UjflLizlBrCixoBAiUlShCwNmZjTfkD3/WjNjM X-Google-Smtp-Source: ACHHUZ6+3rYSKmGuu/KO0+jqVEqj4JRhSAYkui5sKUpWtsk6+hmZCuRtQ+P+7e8jkPKVFxKICdgzEeOyjzsU3TekbDw= X-Received: by 2002:a05:6000:4c:b0:30f:cbb8:4cdb with SMTP id k12-20020a056000004c00b0030fcbb84cdbmr11670662wrx.17.1687255385340; Tue, 20 Jun 2023 03:03:05 -0700 (PDT) MIME-Version: 1.0 References: <108411AD-DBC4-4436-8190-7569B7A0805F@gmail.com> In-Reply-To: Date: Tue, 20 Jun 2023 11:02:52 +0100 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000e398f105fe8cc109" Subject: Re: Fwd: [PHP-DEV] [RFC] [Discussion] Deprecate functions with overloaded signatures From: rowan.collins@gmail.com (Rowan Tommins) --000000000000e398f105fe8cc109 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 20 Jun 2023 at 09:22, Nicolas Grekas wrote: > > So are you saying we should deprecate the function-based version > > completely, and not provide any new names at all? I think I would prefe= r > > that to the confusing set of aliases the current RFC text proposes. > > > > I was not but I would be fine with this solution also :) > Then I don't understand the reasoning of picking a "best" - is the "best" one the one that keeps the old name, which is unclear but requires no changes; or is the "best" one the one that gets a clearer name, and immediately has a non-overloaded signature that everyone can use? > > 1) Do nothing. I don't see the current situation as being that big a > > problem. > > > > The problem is the overloaded signature, which Mate explained in the RFC. > Sure; I just don't see any of the things mentioned as big enough problems to justify significant disruption to users. > THIS would create confusion to me, because ppl would have > two names to choose from, and many won't take the time to figure out the > difference. > This is where I don't understand what you or Mat=C3=A9 consider to be the alternative. If we create any function with a new name, then we have two names for the user to choose between, regardless of whether that's one old name and one new, or two new names. That's why I'm saying that if we have two names at all, they should both be chosen with new users in mind, not fudged based on a combination of current and new naming styles. Once the deprecation period is over, we should be left with a pair of names that obviously signals the difference; or, we should be left with only one function. Regards, --=20 Rowan Tommins [IMSoP] --000000000000e398f105fe8cc109--