Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120638 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 45884 invoked from network); 20 Jun 2023 08:09:55 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Jun 2023 08:09:55 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E92B4180505 for ; Tue, 20 Jun 2023 01:09:54 -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=-0.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, 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-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 01:09:54 -0700 (PDT) Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-3112f5ab0b1so2343818f8f.0 for ; Tue, 20 Jun 2023 01:09:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687248593; x=1689840593; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=uB6pJaP1/46eZTsOgawFUH8bb2LVBIvOCcTvRCgmLvE=; b=Ire6Eq3CJn11GiHNhC9oKHim4GBXwYT41ydDN8WOujjg3Z4jasub8pR2wGkNSy2ZhH VXoJINS8hXLDhjffglx3z1Y+3SfM/G0ba4ottBORoCRczcSZZ/DkqI0oQXIXrS7gWiVh 7Fjyheb4BjMzblheSebVFudXVc00vlQ+ztXH+c3YQrySNTJaOEDw1yiBagu8/JGBX78r fGjvnkGuzPB6+88jQqRiGE3ivy3BEbWBhTETvc2DUg8fJ206X/7Rh9bBV9P6hdgiuTmh l+BORBY3tT86PodLckr2KqrUqWdacXO0edJ0F+3CquqJbEmRRau9MNTETtOXn7kobkyk yJ+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687248593; x=1689840593; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uB6pJaP1/46eZTsOgawFUH8bb2LVBIvOCcTvRCgmLvE=; b=lMVfZWXESCIXFoMpdMMWQyqX7+K/ceAFvrkc9Z9reVK8RSbhWWB3XbJHfsKLxn9cio hRFWp/SN2S1G7CAW6HfEZMBoYnnocYwhcPd+hrzumjTMd32b8PJsbxO1SUKhUHN1EOD8 lLSm8RnxpOsCKNynwkIliTfImzb7OToLUyYsplpEhRP+W3/aGsEmxbrsc5BePt7rZykJ XvYL48JCsBytLIubxNiKtdg1Pi03GQAGYIMbGgVP3DbL5FyhxlTK9h9eio2hZvHWHizu +8udfER0mK/vC1AWy1aDdgiVDOB2eJvungu5sSxeO7X5tY13z1xdZI9MF2JqzOrO7T0O qdyw== X-Gm-Message-State: AC+VfDxiiKqMNgttFUYj6dO0xkyhD1QQ24+4eb5i9P4JyDfr2x69a9Q6 qw4TOZFTiljnowTqDJnX9o3mPG/X9Sw= X-Google-Smtp-Source: ACHHUZ5nQxtUT3RhigCrpRxhLVX0TFKc3SWHb2nH4WEmoClZScaUnkKlmK+ZbfxBNlyYjDrHr4JQWA== X-Received: by 2002:adf:e5c4:0:b0:30f:cb5e:6b1b with SMTP id a4-20020adfe5c4000000b0030fcb5e6b1bmr7914559wrn.11.1687248593231; Tue, 20 Jun 2023 01:09:53 -0700 (PDT) Received: from [192.168.0.22] (cpc83311-brig21-2-0-cust191.3-3.cable.virginm.net. [86.20.40.192]) by smtp.googlemail.com with ESMTPSA id j2-20020adfe502000000b002ca864b807csm1476616wrm.0.2023.06.20.01.09.52 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Jun 2023 01:09:52 -0700 (PDT) Message-ID: Date: Tue, 20 Jun 2023 09:09:52 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Content-Language: en-GB To: internals@lists.php.net References: <108411AD-DBC4-4436-8190-7569B7A0805F@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Fwd: [PHP-DEV] [RFC] [Discussion] Deprecate functions with overloaded signatures From: rowan.collins@gmail.com (Rowan Tommins) On 20/06/2023 07:26, Nicolas Grekas wrote: > Then, among both options, we need to select the one with the best future > proofness, and that's definitely the OOP one to me, because it comes with > more guarantees (type checks). So are you saying we should deprecate the function-based version completely, and not provide any new names at all? I think I would prefer that to the confusing set of aliases the current RFC text proposes. I think I would support any of these options: 1) Do nothing. I don't see the current situation as being that big a problem. 2) Deprecate the function-based signature, provide no alternative but to switch to the interface-based one. Potentially non-trivial upgrade for those affected, but leaves us with a single clear function. 3) Create new names for both signatures, treating neither of them as more "default" than the other, so that users have a clear choice between the two. Deprecate the existing function completely. All the other suggestions seem likely to create a lot of confusion, and not actually leave us much better off in the long term. Regards, -- Rowan Tommins [IMSoP]