Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123701 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 089E11A009C for ; Thu, 20 Jun 2024 17:39:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1718905216; bh=b7erT12DoypudJWa1YH2z4m+/YVAslvMljyz2w7bFxA=; h=Date:From:To:Subject:From; b=CWbNh7bjm26EqBXuJjwYdKfLltCFm62TjGDl7K2NfTzs6d8mdeOR+T6J32Vdclec/ MP7JrAOQAl88+QEdqGkuzkUb/1DXmknVfzT57tlscKxGeeXq9ge/uAS/CdQ4UURO5T Vr160NJ9ENiG7wqaEed7zc2ixWAkXuRK++6QdiMG57SjQBs/rF8lKS9rncx8uE5asf E58sJBkkcBeSph1iB0aRKw9CjcxbsjqUgUXLqm1MmVGioD1jghYS2XOvKnA8jdsquf gz9vdT/478ahKSm9K9KL/MU57vJ69hlNS9DlWdxQ8eXX+xBqePME0bi/7tJDAfJN8t oXyb0xpF3o2BA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C1B6018004B for ; Thu, 20 Jun 2024 17:40:15 +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,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from fhigh7-smtp.messagingengine.com (fhigh7-smtp.messagingengine.com [103.168.172.158]) (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 ; Thu, 20 Jun 2024 17:40:15 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfhigh.nyi.internal (Postfix) with ESMTP id DF5FE11401B6 for ; Thu, 20 Jun 2024 13:39:00 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Thu, 20 Jun 2024 13:39:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-type:content-type:date:date:from :from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to; s=fm2; t=1718905140; x=1718991540; bh=IXAATr1AWQ DuqAP74VCsMo2KV0E/DWmsjyZQWdmN9I8=; b=NoFgP9g5GGWihfXahROkIBQ8KY WYDkfP7exDT+PX4Iv+9M1YhwN5JA7H2f07dETYBXucrcAnBtllfIBLYLVS/V7KSK 1qTUFIRV3E9B1kaAQqb7a3eAxl8LiUmhQhAqEkwzwdEJtpH6/2XqMGKqNe6oSrTb V5hAYimsAo3aI/jzJfjdOO0wOdvD1IIun1q0jE7mP1UJpIdE6ff2ojedxiAsrii9 QAqffiFIUa5kGl8dxv9ukDLv4rwSJtHwZTyQr+OFhdGCIqqJOlJS6NIfzeCU6Ju/ o1vqlkVZ5A3z3jP5tpvhdfb6yEhmSvHYYYxuOx+b5kDxwg4ZbxEF1vfI+dIQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1718905140; x=1718991540; bh=IXAATr1AWQDuqAP74VCsMo2KV0E/DWmsjyZ QWdmN9I8=; b=PwYC5pahhMekqMttiAW+dGB7HOH7rv2GeZ0vG+ghUzVzb4zeZQG 7kg/AoPg0Wyv1q5G7Y/i3/R/sFn3GDBYFTj+a08yljaMNhADqbBMmtDIrb8Gfv7c sqC+IJefIZCT0ZKsPrgmnjtVuVf/6hucOJkIJ2WEg3skYfoVYnn9xLna0LyFQrWF OxVQ04jkHmAjlfjm/64wWIHz94Gqfd/CRY4/1s+h7R2X4swiPeE/QaurWfwVyr6q ABWg7INz1Ch8YEGbY9xHofYwCnyHobNZuLc2RyQgTJ9P5Y4jUazHSXwknAFDOFeB AyJcZYA34KsJ6TVg8DN+CUE/FiE4LUSamvg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeefvddgudduiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfffhffvufgtsehttdertderredtnecuhfhrohhmpedfnfgrrhhr hicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh eqnecuggftrfgrthhtvghrnhepgeehffeihfdtkeefveffueeiiefhjeduhfeuhfdtteel lefhvdejteekgffgueeinecuffhomhgrihhnpehphhhprdhnvghtnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgrrhhrhiesghgrrhhfihgv lhguthgvtghhrdgtohhm X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 867CB1700096; Thu, 20 Jun 2024 13:39:00 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-522-ga39cca1d5-fm-20240610.002-ga39cca1d Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Message-ID: <2a6b92eb-d5e9-4a1a-9548-a068ac42ebd2@app.fastmail.com> Date: Thu, 20 Jun 2024 17:38:40 +0000 To: "php internals" Subject: [PHP-DEV] [Early Feedback] Pattern matching Content-Type: text/plain From: larry@garfieldtech.com ("Larry Garfield") Hello, peoples. Ilija and I have been working on and off on an RFC for pattern matching since the early work on Enumerations. A number of people have noticed and said they're looking forward to it. It's definitely not going to make it into 8.4, but we are looking for early feedback on scoping the RFC. In short, there's a whole bunch of possible patterns that could be implemented, and some of them we already have, but we want to get a sense of what scope the zeitgeist would want in the "initial" RFC, which would be appropriate as secondary votes, and which we should explicitly save-for-later. The goal is to not spend time on particular patterns that will be contentious or not pass, and focus effort on fleshing out and polishing those that do have a decent consensus. (And thereby, we hope, avoiding an RFC failing because enough people dislike one little part of it.) To that end, we're looking for *very high level* feedback on this RFC: https://wiki.php.net/rfc/pattern-matching By "very high level," I mean, please, do not sweat specific syntax details right now. That's a distraction. What we're asking right now is "which of these patterns should we spend time sweating specific syntax details on in the coming weeks/months?" There will be ample time for detail bikeshedding later, and we've identified a couple of areas where we know for certain further syntax development will be needed because we both hate the current syntax. :-) If you want to just read the Overview section for a survey of the possible patterns and our current recommendations, you likely don't need to read the rest of the RFC at this point. You can if you want, but again, please stay high-level. Our goal at the moment is to get enough feedback to organize the different options into three groups: 1. Part of the RFC. 2. Secondary votes in the RFC. 3. Future Scope. So we know where to focus our efforts to bring it to a proper discussion. Thank you all for your participation. -- Larry Garfield larry@garfieldtech.com