Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124560 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 B0EDA1A00B7 for ; Tue, 23 Jul 2024 14:54:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1721746588; bh=LoZ9u/GfCcuLCHixpCWrfzC7zUDHihoJCoasirF81+M=; h=In-Reply-To:References:Date:From:To:Subject:From; b=UtvA+of7TY9eZCVtp1YgU0tS9g38tP44mqt7AbsyneqMmkRjTvjP3/ANCJbbIyWM/ bycQtLvnh3J5OLmOQpnpQctYDqdJ1vxfOUhmK15iyenLoNVDtXKDBGATDZv6UgDcsA WlNOgJQYvKLglxsElOt1LRBzgIPVOCxrXWjXXl03D88V9FnTYcw5UXu3P/KfaosduO eIX45nb7xAm1f3BW9yjYDZyzEovwx4rt5YwQXLX4d6T/X+2gYDe+QX52a1UzGD5enH v8AEhL7tFVTGD5pFMVYWQPeCFpLm8boIvW7FpoBpW8yXkL4cmeHybYfy0AzHtbtKSp /OeJBQNVtHjgw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6728318003E for ; Tue, 23 Jul 2024 14:56:27 +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.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fhigh6-smtp.messagingengine.com (fhigh6-smtp.messagingengine.com [103.168.172.157]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 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:56:25 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfhigh.nyi.internal (Postfix) with ESMTP id C1FFE114012E for ; Tue, 23 Jul 2024 10:54:51 -0400 (EDT) Received: from wimap23 ([10.202.2.83]) by compute3.internal (MEProxy); Tue, 23 Jul 2024 10:54:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to; s=fm3; t=1721746491; x=1721832891; bh=VQeUPyAsjuvz+xaz0DqSt kBR8DKDyaWgGL05jG2QLHs=; b=QMqDUve71PQzzgloXThyucyHaaq7NhTSuObP3 i5z2SBkEYFkfWAayavB7zBPlau0xH/v3fB8LON8z0E2zczhfUH1kEVdtVTcOM1Am 4fOqUku1NYnvRIGFDdJVTuETIbwbFhwWsswEXehGMzFyJN9/HbMGi8P3SBGARDzM Yo1zCrZgEb/gHDy1VnjgcexaSdIFpAhQ3i5vzAGiI8UXUZXhDEmSpQ/PZ/bXwss+ nkORb22DwIjKd1uP9rRP7WJw9eqfezKLVisQJC5KHNmFOFswLrcIHtIAwrUYqWVr MBYCW/en6CBjwm12K2hEFiy6SaOX/TvmLqrZWmiZlcelQTXHw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1721746491; x= 1721832891; bh=VQeUPyAsjuvz+xaz0DqStkBR8DKDyaWgGL05jG2QLHs=; b=o b558AqPsb10MrQIa+reaQlodndgW7t1+7Rr5k8hhPcAnSsuIXRNCuDagYY7wi0jo xVm8EEfTrSU3a4KS5QZl7Pogqk0uK0xbcC/FgammbjVmB1KFR8m55SmQ+TnLZCWs KLH+KKoN9O1f/yZh7uxuAScms4KgIhE+y6phKccLeji+ncKpGuX/oZdTEnRCyGPV GIBhr5rTbyzMiY+G71KXO5JgiXWHODOc9au4T/z9BHVkAo+rcXV+b7aZp16DvSwN HvSEMlIyrlUiwZqjhYjNNfVgvGLoLxHk5PLYvivq3toi8VG9AtyjkUAZPLHW8wH/ WcM+zPg9+16VrLj1QQFYA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrheelgdekvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdfnrghr rhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtoh hmqeenucggtffrrghtthgvrhhnpeeggeehgfetjeehgefggefhleeugefgtdejieevvdet hfevgeeuudefleehvdetieenucffohhmrghinhepphhhphdrnhgvthenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhi vghlughtvggthhdrtghomhdpnhgspghrtghpthhtoheptd X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 576F52920062; Tue, 23 Jul 2024 10:54:51 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-582-g5a02f8850-fm-20240719.002-g5a02f885 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Message-ID: <7d0cebed-023d-4490-ae65-0627bd9a4fe5@app.fastmail.com> In-Reply-To: <49c17116-8f96-4429-ae56-0024a7981852@gmx.de> References: <49c17116-8f96-4429-ae56-0024a7981852@gmx.de> Date: Tue, 23 Jul 2024 14:54:30 +0000 To: "php internals" Subject: Re: [PHP-DEV] [RFC] [VOTE] Deprecations for PHP 8.4 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") On Tue, Jul 23, 2024, at 2:41 PM, Christoph M. Becker wrote: > 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 na= me" >>> 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 i= n that 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` alrea= dy 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 ap= proach in other languages. We've indicated that we are open to making t= hat an optional secondary vote in the pattern matching RFC if there's en= ough interest (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 = this" 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 v= ote 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 I think someone checked and found no examples of someone using _ as a cl= ass name, so the impact of removing it and/or using it for something els= e would be nearly nil. That may still push _ as a wildcard out to a fut= ure version, but I leave that up to others. As I said, I don't have str= ong feelings either way. --Larry Garfield