Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123710 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 DB1941A009C for ; Thu, 20 Jun 2024 20:29:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1718915449; bh=54LlLEQKphXZm7i6cbSqZJpQz8qLEP4oDK0NFWj3UxM=; h=Date:From:To:In-Reply-To:References:Subject:From; b=mhc9wRZTsfx2+d/buCouNLNhZTDGqr6QnKdHlARSphwyITaz6VfHGbVb2SkI0Ub6s GkULDKUQLbCbTEpSK8IfE4I1DYOnm7nABG+POvmzah67LRVJ18KX/w5udKWQIt0nid fnk+1aSQTIHnGQOWuAv9XR1n935PePKZJrYtvlLswuST6YTreOu1T5NbDEVyO7PDPB NX4m9ZWV78aNC6UuMFStdUk1Xt7N23EIBhBHW+ljPzJTitDE7HRbWs57/ziAOr0bDu gqgePrfWATI1hJFVx3HhKXms6Swa36x5s7plB39ehIuV7lshkRuE5mnNl1C+YjHLIm YaAG72SeLicTg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 001CE1805CF for ; Thu, 20 Jun 2024 20:30: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_MISSING, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,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 mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) (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 ; Thu, 20 Jun 2024 20:30:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thomasbley.de; s=s1-ionos; t=1718915369; x=1719520169; i=mails@thomasbley.de; bh=iH9Gh5jQrTvp8azBpiuTn1ix8mvxXK0vghCleCFMAAI=; h=X-UI-Sender-Class:Date:From:To:Message-ID:In-Reply-To:References: Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=ahKi6sEMhAEe6o5TmIjMDI++QFYMKzDm1hjQ2xHA/bx0oY0ve44sYBLVSTDmcXqM Nw/qtRYfkBBb43XciQ+RV9ACiVLTNfA8G3woCSDUJ+I7HgE6r+0SQwGqyDfDCBrok 6GKgrFYZ1h/YefV9ALzWayMxFVOko6zWmYiWRX0uWYzygKCY0SGwv88CHhMOLGHcq I8FnVZOuELoouInI+v6upvt9GVzhmSkWAOOcvL9QWnmhcEvC7JK1lVHMIH6ON1taC kx5KrhfzWWhqWD99lEaNejZBWoBN3SN1g9ruxf47e/9g0cjR00H2+1ySkdiv2Z4Fy FL38pUxN61xyEFWGPw== X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6 Received: from oxbaltgw01.schlund.de ([172.19.246.7]) by mrelayeu.kundenserver.de (mreue012 [172.19.35.3]) with ESMTPSA (Nemesis) id 1M7ehh-1sHMXc0p9Z-00E5U4; Thu, 20 Jun 2024 22:29:29 +0200 Date: Thu, 20 Jun 2024 22:29:28 +0200 (CEST) To: Larry Garfield , php internals Message-ID: <1956529224.315730.1718915368970@email.ionos.de> In-Reply-To: <2a6b92eb-d5e9-4a1a-9548-a068ac42ebd2@app.fastmail.com> References: <2a6b92eb-d5e9-4a1a-9548-a068ac42ebd2@app.fastmail.com> Subject: Re: [PHP-DEV] [Early Feedback] Pattern matching Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.6-Rev65 X-Originating-Client: open-xchange-appsuite X-Provags-ID: V03:K1:miaiR9XFgLkGN9EynlB4RIbBvC2l2zIHfsMZbRO9QVhtJpg+EjE 2O2G44D4jWrlT40viyvu/MwjzLG62i2D75DLHrvJDqjdhjiKfX3g7RlY2rzesfuXPVTNp5Y 1PCeXhblFvnJFu+TG0+XSJcYZw02BlBa6U/RrXX8M3rcO+EjQJxp3yDzn5pi5D7e6JWL+Tb rg4VNsQGKQdjZFstWanFQ== UI-OutboundReport: notjunk:1;M01:P0:fHBGEquoJNI=;U3qoRazq6AXzaMmEP/zzPwMUZdK OPiIwEJENVIaO7w/+niNPrc0nfL/kUaUoNob+Z0HJ50SkHT4Cz8a/tIdFo42o/oOGhKUNwj+z /LYz7CF8cAmxebn/RvoI+G6VvdzX6y7i+HmdGJpEfxBKWu4PtafLc/0Km+fuSZtY/BpfTdeOg m+35jLpkXAuRLSgQm4UBQyNXwF0+lfK0pixkpf9nxUwgjdrA3ex2jLHO/dJDGurVaLP6rBeNl 7nFousaC2NkM+ZhWRJNRtaxOhEQqqiogub9TmoWxbQsOClUml09SxoQdyXZfvki/qbQad6EgL +VyOYqGxJV0TzoLXxvk99EZ+B/pgSdzZqcKn6BYBubKvnPGYIMppYit8qHfPihDKw48nAAzdX VqucjQWmu2y5oj3aUkS/zEHjPyKmgtcNsqXpcdMN3vC02RS5WaMWq8DSK3qxvFeeDY6W6KSo5 sTHvUBc2+M47lVIC7BKx2Xmjb6orF93VBzIazO7RiQEBsT6a7jF2CHScaVT1U+sPtf+9qeYd4 Fhlw8Gft1DUviHBHCl+mWfdsRcorXld1aun8+k9IFYJa3S2aVTbfih/51Aj+odOZYqlcAb5qD 0W7WoMU+aJVh4Zitm0Ddg7FioLQiUTXuy38amCbbT478/TCXADVGnEcgsgu22VglAPK5Lr7jO ctcJXOqrqIVtvNxfW5AXm0fzQWLFJdyjzYkGnfVcwhaFmuRd0Tu9pTw4vpLakS2QQs4NIfPF7 8CmaKxC78yY+GKjJ5nArzsAkkXuR7kqQg== From: mails@thomasbley.de (Thomas Bley) > Larry Garfield hat am 20.06.2024 19:38 CEST ges= chrieben: > > > 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 ea= rly feedback on scoping the RFC. In short, there's a whole bunch of possi= ble 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 partic= ular patterns that will be contentious or not pass, and focus effort on fl= eshing out and polishing those that do have a decent consensus. (And ther= eby, we hope, avoiding an RFC failing because enough people dislike one li= ttle 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 detai= ls right now. That's a distraction. What we're asking right now is "whic= h of these patterns should we spend time sweating specific syntax details = on in the coming weeks/months?" There will be ample time for detail bikes= hedding later, and we've identified a couple of areas where we know for ce= rtain further syntax development will be needed because we both hate the c= urrent syntax. :-) > > If you want to just read the Overview section for a survey of the possib= le 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, pleas= e stay high-level. Our goal at the moment is to get enough feedback to or= ganize 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 Thank you! > $var is *; // Matches anything, more useful in the structure patterns be= low. maybe also consider: $var is mixed; // Matches anything, more useful in the structure patterns = below. > // Array application, apply a pattern across an array > $foo is array; // All values in $foo must be strings > $foo is array; // All values in $foo must be ints or floats +1 Regards Thomas