Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126274 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 702571A00BC for ; Mon, 3 Feb 2025 07:04:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1738566092; bh=oWGkmJesxvWP9T+XeLNEbq4s2d5EHCdZ8ds7q4S1a1U=; h=Date:From:To:In-Reply-To:References:Subject:From; b=H8JHtEL63u9wjlxwnQ+qILL8McOvgvvb/oN1ebx/wjiF6SPDRWz90eN4B/c+WjmkS us+hP3xc54fpa4pvfX4DKIWYuD1ri3pLdwIFSPhZdrdWozcNXqOwhw75mE140uLWqg jdMKacklktxu9Ed++Du9mgKFo9kEw+sGue8nc4BUtaI95qSUsKpKAHfXL0UKI7jYAa 1OBsUTzRcSl/2VWKQI9UJrZDiTK/jELD4BmDAQxyUzRynbDeEQ8tHDoJgtw1BQDfax MLJHCGAaI3lL50UNu/8JuUDoJmz52a3g8DL1rRFonyi7WT5qHYM8dS1qHcripj4IdQ K/Qu6zOU+oXPw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B73C1180072 for ; Mon, 3 Feb 2025 07:01:31 +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, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fout-a2-smtp.messagingengine.com (fout-a2-smtp.messagingengine.com [103.168.172.145]) (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 ; Mon, 3 Feb 2025 07:01:28 +0000 (UTC) Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfout.phl.internal (Postfix) with ESMTP id 2002C1380834 for ; Mon, 3 Feb 2025 02:04:14 -0500 (EST) Received: from phl-imap-06 ([10.202.2.83]) by phl-compute-01.internal (MEProxy); Mon, 03 Feb 2025 02:04:14 -0500 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=1738566254; x=1738652654; bh=W6eSnpaYuAMYFgEETkNY/ 3n9FUvMoGyDrx58VqEL4WE=; b=s0CvNdBvdBB8Xn2k6f0oPwO/h1SQT1czWTapn 5t9yjWLewPADuzP3kWR69bg5RGgZyTWQEYMh4TLv4Cxl1RB7ov2UISvUKXzXzXpZ yI98UKTDCryNZ8ouS8DNw9Bno5HiVhMhUixqkm4x9mTfRjD6/7GG9mFUuCEYF7bd +IuwNr/MkA0LIVaHXC23/NE3Zd8AFp9r+waUM4AVd1X2u5sITNQKKqk5etGukw2n sq1QPv/UufXWO8LnnJjOG5akYhcwV3vasfyDzEAULevIpV94POvmf22eKwIZ5pNI /mHdUbbD8/sVdAo1YAg6EeNtNbjSeGqAYkxcF0O6dxQgoeAHg== 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-sender :x-me-sender:x-sasl-enc; s=fm3; t=1738566254; x=1738652654; bh=W 6eSnpaYuAMYFgEETkNY/3n9FUvMoGyDrx58VqEL4WE=; b=Fc6wi22coJZ8SDeWT QWprKc7OgUMdU33rWsNLSvwfik9BdNP+zSw3mF5hi3u7ZXv1yxzJHo/nN84uTVc4 aI7XEuzjS33dG7n0hUt62izjNdgylNeyFVgACk2awrFNNm6kZ8OTa2smYgX7ip7f s8yNQEDrJHygFf9UR7I7uTo6Q/Gs1KkLDXeNr19s5BFPNVRNS7/TH7J1HBcS4E8T h3/wNbJZNXClcYTmYoCLy5kOaKqzTES/J5u3oP9byAhMYG+8mHpcW7o3fEQU2pNw bYJUxyM5hcKa8stj+genbHrPYJv5zamH5EpDtICHZMtdqgcx2JP5IJzh08As/mXG zvOuw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduieelvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefoggffhffvkfgjfhfutgfgsehtqhertdertdej necuhfhrohhmpedfnfgrrhhrhicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfh hivghlughtvggthhdrtghomheqnecuggftrfgrthhtvghrnhepheeiffduudelffejhfet teevkeejveeludfhveetffdvkeevjeekveeltedugeffnecuffhomhgrihhnpehphhhprd hnvghtpdgvgihtvghrnhgrlhhsrdhiohenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh dpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhn thgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 63E7B29C006F; Mon, 3 Feb 2025 02:04:13 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Mon, 03 Feb 2025 01:01:04 -0600 To: "php internals" Message-ID: In-Reply-To: References: <2A357F88-BAF4-41DE-8646-6BBBF4EFF6F6@gmail.com> Subject: Re: [PHP-DEV] Empty subject in match and switch constructions Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") On Sun, Feb 2, 2025, at 7:40 AM, Ilija Tovilo wrote: > Hi Dmitrii > > On Sun, Feb 2, 2025 at 1:05=E2=80=AFPM Dmitry Derepko wrote: >> >> I=E2=80=99m thinking about making match (true) and switch (true) be m= ore lightweight by removing the subject =E2=80=9C(true)=E2=80=9D and mak= ing matching =E2=80=9Ctrue condition=E2=80=9D by default. >> So $var =3D match (true) { =E2=80=A6 } can be used as $var =3D match = { =E2=80=A6 }. > > There's an old RFC draft for this that never went anywhere. I believe > the feedback was mixed, but there's no way to know how it would have > turned out since it never went into voting. Given it's inactive, it > should be ok for you to take over. > > https://wiki.php.net/rfc/short-match > https://externals.io/message/112496 Hi, author of that RFC here. Although there seemed to be interest for i= t in the initial match() discussion, the stand-alone follow up was met w= ith a giant "meh", which is why I didn't pursue it further. I would sti= ll be in favor of it, though, if it could get through internals. I'm ha= ppy to have someone pick it up and run with it, or collaborate on reboot= ing that RFC. (I'm pretty sure the patch for it actually worked, at lea= st it did at the time.) --Larry Garfield