Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126531 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 E58E21A00BC for ; Fri, 28 Feb 2025 23:28:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1740785149; bh=yaq0zCSrcd81GjSPM5RDz1p/wEIYZr86sEpAiswgpYo=; h=Date:Subject:To:References:From:In-Reply-To:From; b=HwRz6PeBF2Ktzofn4HtZpG0MDoG2LnGajIM+/LrvAPWZoqfbHr7PfAFPNdbMNDNwz UQ/xp2oEk4HukNwZknW8Y43yRt3YHYoWjE6dwPzpghJeRVmGn+i1FssylkB7zE9BVS gCDd5WTOvn66b3qPdjhwI0uLBAjhA0li/eJEnydq4tIwlcRId8F6PyqmJtTYaVLl4l /Xlix9jPLKywya1ydLSyNHWIjGS6FnQ2jK1fIGwpGdUPOkseex397J0nJqlz2OBY9d qvbkCRlhYwUBgDHPOgH7nG3yJ0Wa2a533R8goEmXMoJ3bDgEOI5WnKC5lQd3YaPqJb 8yvecG6D/Nv1Q== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 19E50180034 for ; Fri, 28 Feb 2025 23:25:49 +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.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 ; Fri, 28 Feb 2025 23:25:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1740785304; bh=aa76fl/IDPVbCEkBZHmp7/WtHm85IgH1tQ18/rwVe04=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=KUy2IaUZYiXylNbFuZp/u3cIEv431zSvbxxjBuWPyjlk41Zx6Y/z9hogYP1YgZlJo d5ob/f8BcO/bJBNiMon9hWwIECmmxV8dJB8NYqZQl1WJh5D41Bplgl+TLlff3zZe2g m9qB3UCX1G/WsMM9kyW6sTvgEM03oJ+WBt/4RgVgulsV2OLPTrG1YvxFnr9PZrlNcf GYh8yfB8/A1CfvU/Viq1T/vPFB3H7SZTwyGMPogAirI/VlBX8Ato89BuHQS2ivMxmn 2n+owUEHSzw5LyITDCWlE2sx3a6yuNFEiEODduM7dAIVctjRhRXZcImd8qSqw7YWYr 7KmO+/FuNfkrg== Message-ID: <1eeaf0c3-9072-403f-a556-e8c31db1a9a7@bastelstu.be> Date: Sat, 1 Mar 2025 00:28:21 +0100 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Subject: Re: [PHP-DEV] Vibe check: array shapes To: Alwin Garside , PHP Internals References: <81F87FFD-91EF-4FDF-A929-9BE1CA08AA1E@garsi.de> Content-Language: en-US In-Reply-To: <81F87FFD-91EF-4FDF-A929-9BE1CA08AA1E@garsi.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi On 2/28/25 23:52, Alwin Garside wrote: > Anyway, I would love to try and push this idea forward – either by contacting Kacpar, or writing my own RFC – and have a shot at implementing a proof of concept, but first I would like to get a feel for whether this proposal would find much footing here. I guess the pattern matching RFC could be the solution to what you are looking for and I suggest to have a look: https://wiki.php.net/rfc/pattern-matching and https://externals.io/message/123701 Best regards Tim Düsterhus