Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124561 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 0B42A1A00B7 for ; Tue, 23 Jul 2024 16:01:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1721750569; bh=puW/Ue8f3vWf9Xhd2nudWi/z5E11w4cIReWsKL1mhMQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=KtzrGmUDezly3INPzHGybFhSpZ0bejToERry5ZQQEeen4ntt+NAfssKl6R0v2HA6i 5CopGoUI7pAE6cwsh8bBsa1c7kuh3HX7gGKvoL39SxCHHXJu2LAD8i8FiwmVc9o3k7 1oOUXJjzEIswpqitFFXKROeY6cxxFFIAsQSRQu1Rn2si7oN8iwC95cNXgglJKdD5Md Y3aBKmmz7yC/TbbVLLb2nmolLOt5mHDwlgV/76Pctw/zPBdD5IS//IAT2bHYn71S7f HFSKpgiiUAU4kWkG44XKx8GWZcEa0MwkftqVw3StwFIHDBO6ITjdYHZWwnRCkmKm+3 Qo6+1eQ4QOjCw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CDBEF180057 for ; Tue, 23 Jul 2024 16:02:48 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,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=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-oo1-f52.google.com (mail-oo1-f52.google.com [209.85.161.52]) (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 16:02:47 +0000 (UTC) Received: by mail-oo1-f52.google.com with SMTP id 006d021491bc7-5c691c6788eso2798258eaf.2 for ; Tue, 23 Jul 2024 09:01:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721750473; x=1722355273; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=MA+1i0XHJKggm6mLgHx+2SMNs9tDyeeFgTmOKwDH1ow=; b=J/q5pye1pyrD0I3Ty4UNXkj3WuiS1AMMlN6UpTdYgXbjmfVhmJkEu7NIg9UqpTBrsH p7b8HlA53ZBnvqp7CB3uytUMsdEbaC3cr7XwXOLa12QBHmCrxmGVTg293x/YpRoslm/e Tqx5UjDy44b8dhNRynwhE9NJeX86LOv0Jc3Y5xpbRyRPAgH4cVWM/UvUpFNgkD34up9v EmSxH7NHWGSFVsDuXOPN/RhfH+Mng4KLLEy+HIHvPatIpHwuPb5euz+Lxp+/BLDX5PBq 1gs0lxB4QTZnmL+ddk3ksQSP7oq/8qyUMKhvKBkWrVQrIVG+o5kBoxUxqgebxtOkMC54 icxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721750473; x=1722355273; h=cc: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=MA+1i0XHJKggm6mLgHx+2SMNs9tDyeeFgTmOKwDH1ow=; b=CSLvG9N8befGTPK3f29QT1+tb391hMsWW51zuxVpU/2511pQ3cdvEFeLSfD7KSZx86 obrlGGYQNRMw+yrAmeOmeqDXe7bsOifx0Km/Nf9hTgK47XDGPOAaF0ZB/PzWE1HKu0yQ qC+/cPGA28RLH0bUdWngkFNfgli5xaOoh+mjz41HndWBsNfQQa3eoi6gNpZWiDfILHY1 Qee0H+HXzQZoFlbjNMamlpfxVAWCwxvGLzucWUGzOMtGexE6D3RHdFfahXg07BAZtgzu 7MS6LzpWZ58L3zPxkvbGjW4BrGJqrQnDwBgnMxP2vnpiTcf+IUn+j4ObmKZxjHKafK/y SMBA== X-Gm-Message-State: AOJu0YyjXSi+BkjLpmYxADzbsctgdTgKrGfoEjmfDclFnmiAQrsoL8j2 qu4WBU1jxHHq5C5Zrjj1/2EdzFlUzfh9Lt3Kxm84mjbGe6Mx7fmxFLt7JAw4FKnmJox8yj7c4wH o/6nzvXd+BHL7o8NAyws27PNVyjGqvg== X-Google-Smtp-Source: AGHT+IHZgUe/6ODKfg9xSnbnfNxjmw7qX8pVVdL+vtMkoe6j54VwKtdK9cY0Pis0vqxCK86N+6M1AzFZPd+elJwXDxo= X-Received: by 2002:a05:6359:5a8d:b0:1a4:617d:6fe2 with SMTP id e5c5f4694b2df-1acc5a7db25mr1254816755d.6.1721750472506; Tue, 23 Jul 2024 09:01:12 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 23 Jul 2024 11:00:40 -0500 Message-ID: Subject: Re: [PHP-DEV] [RFC] [VOTE] Deprecations for PHP 8.4 To: Larry Garfield Cc: php internals Content-Type: multipart/alternative; boundary="0000000000004e4636061dec454e" From: mweierophinney@gmail.com ("Matthew Weier O'Phinney") --0000000000004e4636061dec454e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jul 23, 2024 at 9:06=E2=80=AFAM 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: > >> Hello internals, > >> > >> I have opened the vote for the mega deprecation RFC: > >> https://wiki.php.net/rfc/deprecations_php_8_4 > >> > >> Reminder, each vote must be submitted individually. > >> > >> > >> Best regards, > >> > >> > >> Gina P. Banyard > > > > > > 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 > 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` 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 approa= ch > 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 > interest (it would be trivial), though I haven't bothered to add it to th= e > 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. > Can you provide examples of what that usage would look like? And the question I have really is, does this actually _require_ using "_", or could another token be used for such matches? --=20 Matthew Weier O'Phinney mweierophinney@gmail.com https://mwop.net/ he/him --0000000000004e4636061dec454e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Tue, Jul 23, 2024 at 9:06=E2=80=AF= AM Larry Garfield <larry@garfi= eldtech.com> wrote:
On Tue, Jul 23, 2024, at 1:42 PM, Matthew Weier O'Phinney wr= ote:
> On Fri, Jul 19, 2024 at 12:41=E2=80=AFPM Gina P. Banyard <internals= @gpb.moe> wrote:
>> Hello internals,
>>
>> I have opened the vote for the mega deprecation RFC:
>> https://wiki.php.net/rfc/deprecations_php_8_4<= /a>
>>
>> Reminder, each vote must be submitted individually.
>>
>>
>> Best regards,
>>
>>
>> Gina P. Banyard
>
>
> 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 = 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` already ser= ves that exact purpose, so having an extra wildcard was removed.

However, a few people indicated a desire to have an explicit wildcard _ any= way, even if it's redundant, as it's a more common and standard app= roach in other languages.=C2=A0 We've indicated that we are open to mak= ing that an optional secondary vote in the pattern matching RFC if there= 9;s enough 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 &quo= t;ignore this" cases, like exploding into a list assignment or similar= , though I don't believe that has been fully explored.
=

Can you provide examples of what that usage would look = like? And the question I have really is, does this actually _require_ using= "_", or could another token be used for such matches?
=

--
--0000000000004e4636061dec454e--