Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124559 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 67A9A1A00B7 for ; Tue, 23 Jul 2024 14:41:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1721745787; bh=tX2kK1ZlqyW7YK51mR5BK/mu3kFqkm6fFGkUIx8H+MM=; h=Date:Subject:To:References:From:In-Reply-To:From; b=Cpjm3zPl2Ecqttv9E1iuCW/tUp97XtfXZPu4w88NIzmRGg9GRepvyhNc6pwojy4FW gnrZW7gaOQp4t2ogXlekMO7dENDG6Ml/g6l3bjngggb5Ek/RCNVLaq3RwFFaTNOHl8 Ugbz9g38JMe60Pqs8g9zFMXdbGGX9tJGrDI6/vAKZQZkepU6mfWrSjzwx7nrXpMD+i UMMeCjxRNBDlW8GQ+qqvNQMm6crDOT+fLzflFM02md+XdxzZ0Y/nHl+a0Kb2xq7pX5 nZVfEfe5UMlEyZG8CCKT4yUhcn0FcsaVfIRiQOcxnkkHCayDvEsOF250Q+s9ekcB+u L0J0CJ05QvLAw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 62858180054 for ; Tue, 23 Jul 2024 14:43:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 23 Jul 2024 14:43:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1721745689; x=1722350489; i=cmbecker69@gmx.de; bh=x0qVucrFKyeyDfl4h13KqfrLwPKD5/93NZ1DXpMlwPw=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=cGu8toOKLKcxpOxWQ2SjmBiZSuLLeuguVU0p63MD1tyQsBKYXIsZ3i08uVh/ka+D Gi6I46hOtIeKM1WaRAG7L1wq0wVDksm+sB14MoqUweTeaLturfuShFxSFbCGGM7VM lDfUg7kDzD3pkpuBKlPDJZUs1vsMbvLQE4yogsxxGEUnV5PC1Dr6XKwxM5v6/eGta 2fbJs83AWRm5xVq9kOda4GAVrVY+QrgCh7FmzuLAWGZc6Qh3GuC+jQPT9nyhu7BTk TFhF7GumuMuJZGwlAIqfniaqRIUJ2mA08cPKbZi5dYIiEwl/cy7gWP//iDZJGH7NV JX7BpGqYvl4KtRXLcw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.2.130] ([79.251.205.37]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N95e9-1sGzoV3Rhv-011yDl; Tue, 23 Jul 2024 16:41:28 +0200 Message-ID: <49c17116-8f96-4429-ae56-0024a7981852@gmx.de> Date: Tue, 23 Jul 2024 16:41:27 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] [RFC] [VOTE] Deprecations for PHP 8.4 Content-Language: de-DE To: Larry Garfield , php internals References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:J8kUvOGksyo9BvNsadyMve8QX/rwR6rV5mgoW8mCLa4/jlBGTrD 3fdoJc/i1RhaCSWP2MQtc3ai1jzYchGhMctClVP6wFI7N+mv1sGlOeEFKlW00VryR13IR67 NU2GyDPjc5xiv0dw+psr9fVfDPXvlQacqYPxr5WB0TUY0UhUX4hj02+75p4fUGVr61OuCSa xt5l5BFmNNHF1nTrVVbYw== UI-OutboundReport: notjunk:1;M01:P0:VLIwjukjfZM=;mLVvlCjJ79wBxbjvjIbDDeccHFm 2P/V0vWbMoZvAA/dKgsdZzOCV5zgRm1K++rcLuodG/eH2TlAybThnWtBwigCWPL7oKcVQdC98 2mkBFJjGoBiYlkW0MnIoclc4e9E+dANQgPVzBI1kUMNNy5yJarls08CdaX2Szp5g5VDBnrJER zkAe6heomfd4mgipgwVVhfL3PCn/N95iZ9E3u+nI2XrgusT5sclqXwsi/2EUf3Twybpur6Yno tT/CqujwDCzz3COK2B8UW4oFtYar8EjDv/8zSWQ/Pp/A44Z4EuPqjoJGWB+tgdmkZMc2QQsq/ QYnpjCDj4OBDiwCkEgivgKH3z4EKjy6iM/uXebiv2FVhoo/XLez/VrvRtqKXzxErx3zGlqsL/ MVf/7wAD6Abz0Nycb5Ku80IcJoOb6/tx1fop9YntiALzUGGFwnk6GTbBqc1qFGnq45ALxFoFo TnvUoyktUi/kxL30dxj98FAouoasWCdTPKBpKRF8MPcEwulP22jCQYjCqQfcEVRHyEpPRsLq2 V+/ie0hDUrCrGZ0XmURtIjHYdlHtsSwlYzgq4qETP1bQ3DjQNva4LVhBO/9Nao9CRc4eDxWiG 8OrcgZz8I8cjtUPr4LfuCfin1l5SA4qFMm4/VlMlyBZ1C//geukNgkvjdNm+79PO/B7lZyKRR aqfK0NlFkOrM/LY8hzx8saj64arGoDbT2bx1q6mcZ446zwDC/VZsfXjw7CqObijrbCCzgSCsG imQ0JLZwSImL7eDQcxK7bJHFTyeQJsf4q+zMtEg7BF633qat6tN9y8HL4NqiMf1XdFlOQIT/a 8FmLw1yNtozvZT6rKe4UiBOQ== From: cmbecker69@gmx.de ("Christoph M. Becker") On 23.07.2024 at 16:04, Larry Garfield wrote: > On Tue, Jul 23, 2024, at 1:42 PM, Matthew Weier O'Phinney wrote: > >> On Fri, Jul 19, 2024 at 12:41=E2=80=AFPM Gina P. Banyard wrote: >> >>> I have opened the vote for the mega deprecation RFC: >>> https://wiki.php.net/rfc/deprecations_php_8_4 >> >> The section "Deprecate using a single underscore ''_'' as a class name" >> indicates that probably the primary reason to deprecate it is a >> potential future conflict in the pattern matching RFC, where it can be >> used as a wildcard. >> >> However, I see no mention of this character as a wildcard anywhere in t= hat RFC. >> >> Can somebody clarify? > > The pattern matching RFC previously listed _ as a wildcard character. > > In the discussion a month ago, someone pointed out that `mixed` already = serves that exact purpose, so having an extra wildcard was removed. > > However, a few people indicated a desire to have an explicit wildcard _ = anyway, even if it's redundant, as it's a more common and standard approac= h in other languages. We've indicated that we are open to making that an = optional secondary vote in the pattern matching RFC if there's enough inte= rest (it would be trivial), though I haven't bothered to add it to the RFC= text yet. > > Having _ available could also be used in other "wildcard" or "ignore thi= s" cases, like exploding into a list assignment or similar, though I don't= believe that has been fully explored. > > That's the context/background here. Whether that encourages you to vote= for or against that section I leave as an exercise for the reader. Well, I wonder how that is supposed to work. Assuming the underscore would be used as wildcard in a class name context, that could only be done after using that character as class name is no longer allowed. So that would have to wait for the next major PHP version (at least). Note that I'm not worried about no longer being able to use an underscore as class name, but rather that this introduces another inconsistency to our indentifiers. Disallowing an underscore as function name is obviously off the table, thanks to gettext. Christoph