Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115298 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 53608 invoked from network); 5 Jul 2021 11:44:00 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 Jul 2021 11:44:00 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1C0381804DB for ; Mon, 5 Jul 2021 05:05:30 -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,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 5 Jul 2021 05:05:29 -0700 (PDT) Received: by mail-ej1-f54.google.com with SMTP id i20so28421980ejw.4 for ; Mon, 05 Jul 2021 05:05:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=h3vwCJf4myJM+TGpyu/vHgtcqmi9A7Rq9Dh1XZqI0ZA=; b=C6j5UMru8Ve8SZUyLZKlfLYAudRQuxIM9f3HsLbqmQU+OzVWyAtyYBhU9siL8lDaHG SLe2CSBKEUaFNavUA5yOwwkTPMEwAIeEexO+GcVzHXRDeaf5a58oyi/NtypAtqS+fT1M 62hMgH2p+L66PQ+U/LpMtV25dww57IeU6Szf+ZLnhU/yLB/NwIvLccH/4Q0CB8fl+hnK A0cYHwRFi+tR0XEiOIRmKMDAUWThuswQUORe4wbQjIKgY0fA23d+mRw91hHoBofGuBk+ jUtqDqgRu+tQrDnRNWqUYRi8JcoUORs+JigcozuI+7AmyGe4m2Mtl31xPPxrNA6dY7BE s3Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=h3vwCJf4myJM+TGpyu/vHgtcqmi9A7Rq9Dh1XZqI0ZA=; b=NjuHDcR4K8Y5aA+dvSEq/K+Dm+dkpk29/FxlwE9/6V4ixSEsovkiAgFv6PKLlQs6ye Ym2ZBpayReMzeIUnrc8LRt5EV9iept5AXGyUVkrZtxqQ9P+8t7hMmueLn33CAW9V+h8i buS4TxuyeI4uvmoHAksxBZz+MctRLBkHqP42F2alB3o+v2EnmUMkkZUwVhWQSN9RgV6F U0LUZ3CPE64mSPBnoAe2P8Q4YCQuB4S0dswE2m/1Nx0NZD/KP70RiP7FaA2KQT7ns4wh oqakWC7tlREO8e5RPAxnIrwiiDLpZ7y2PIk5OpwRDO+8lpW7TJ2FBbtttw4M9soaQA3+ Cbkw== X-Gm-Message-State: AOAM531Ro0kULWgEmp3WFz2U9cv73IhJmyGRS5OWbSjWGFqYmOhy86ol uW62SxTHKzdmT1GbI+1DMF7OV74hSWoewwOCY0TBBghiA3UzlUsc X-Google-Smtp-Source: ABdhPJxkLf3aGbnJbGmYQqSZj8TKtUeWOVY91uUjUucZYTx2boRNR1xD961iyqi/LrMBWVsFpZM+QgDzYLdK5tOT0Ts= X-Received: by 2002:a17:906:9b8f:: with SMTP id dd15mr8714049ejc.77.1625486728239; Mon, 05 Jul 2021 05:05:28 -0700 (PDT) MIME-Version: 1.0 References: <1dcefcec-a3e4-e773-4950-b11d377ecc7f@gmail.com> <122F660D-DE94-4DFE-A0E9-FEC202E89E3A@newclarity.net> In-Reply-To: <122F660D-DE94-4DFE-A0E9-FEC202E89E3A@newclarity.net> Date: Mon, 5 Jul 2021 14:05:16 +0200 Message-ID: To: Mike Schinkel Cc: Rowan Tommins , PHP internals Content-Type: multipart/alternative; boundary="0000000000000631df05c65f1fd0" Subject: Re: [PHP-DEV] [VOTE] Deprecations for PHP 8.1 From: george.banyard@gmail.com ("G. P. B.") --0000000000000631df05c65f1fd0 Content-Type: text/plain; charset="UTF-8" On Mon, 5 Jul 2021 at 13:39, Mike Schinkel wrote: > > On Jul 5, 2021, at 7:14 AM, Rowan Tommins > wrote: > > > > On 05/07/2021 11:46, Patrick ALLAERT wrote: > >> Did we ever deprecated something without the immediate intention of > >> removing it? > > > > > > What would that even mean? > > It would mean that although the functions are available and allowed, they > are not recommended[1]. > > > > Surely a deprecation, by definition, is a notice that something is going > to be removed. > > I know that you, and others on this list, have chosen to define > deprecation as including removal, but that is actually not the accepted > definition on the web, nor is it in any way a requirement, it is just your > preference. > > Indirectly from Wikipedia and voted as the top answer on StackOverflow > here[2] (emphasis MINE): > > "deprecation is a status applied to software features to indicate that > they should be avoided, typically because they have been superseded. > Although deprecated features remain in the software, their use may raise > warning messages recommending alternative practices, and deprecation MAY > indicate that the feature will be removed in the future." > > So I am arguing for the legitimacy of retaining "deprecated" features if > their removal would cause significant BC breakage, I'm not just trying to > be a pendant. > > -Mike > [1] https://whatis.techtarget.com/definition/deprecated > [2] https://stackoverflow.com/questions/8111774/deprecated-meaning > For the PHP project deprecation means a future removal, I'm pretty sure this is an agreed policy for the project. E_STRICT was like Rowan said used for cases of "well you should probably not do this but we'll accept it", and this category has been removed. Now if you truly want this definition of "deprecation" can I bring forward again to "deprecate" short tags, using 'var' for object properties, all of the SPL data structures, a bunch of extensions, using locales, and maybe to be fancy emit one when you don't use a visibility modifier on object methods/properties/constants, heck why not even one for not using a typed property now that we got mixed and union types. As you can see this opens the door to kinda everything being marked as deprecated just to ensure another discussion needs to be held for a removal. The policy of X being deprecated means it's going to be removed is very clear for end users who don't need to scramble as to whether or not this deprecation leads to a removal or not. Best regards, George P. Banyard --0000000000000631df05c65f1fd0--