Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123895 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 864B21A009C for ; Wed, 26 Jun 2024 21:15:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719436580; bh=mp+Mlbpn9PdXy8DyaqaNbT3tI+I7VVbaFJR+Eko9aso=; h=From:Subject:Date:References:To:In-Reply-To:From; b=MCMF/WZVeuTvGx1+7M4iuh5nVPiq56cUhKwhmXx59N00jHQnM556XRiKKTxkfp2RW fDcDo+GDpUO+EIxOCjDiWxh8jAgiBW6psdGyqo8EFy7MqC1LBEn2+AvMsNQ/FxsVu8 GC4QQGovuZgdBc6sofDbwzIK2r3lZfap6fuEIl8BdV7YGqrA3cCJpSpbrfNRKmr125 X5auSdvcvvKmtOvUnn+NO8/K7uoh1sXHXT7uqAwvbaLWfWEUIg8zaXYlukwhHTacqJ hzw/mFHjtXu5j/V3kQQBy6VAqW7U9WnecmPjFan6h2VjbMSp1lISOmQcvkGHHwjQXO /V1bAFJgDLrnw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 559CD180560 for ; Wed, 26 Jun 2024 21:16:19 +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,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 mail-il1-f177.google.com (mail-il1-f177.google.com [209.85.166.177]) (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 ; Wed, 26 Jun 2024 21:16:18 +0000 (UTC) Received: by mail-il1-f177.google.com with SMTP id e9e14a558f8ab-3762c172d93so30253315ab.0 for ; Wed, 26 Jun 2024 14:15:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=miles.systems; s=google; t=1719436499; x=1720041299; darn=lists.php.net; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :from:to:cc:subject:date:message-id:reply-to; bh=uOqb7iUiwhA2o4o20fNdYmTXz8CW3uEx/Mkh3DsIx/w=; b=F6HsB9LTneqqXXhQDlA0isPKaLwkOLeGpJxwR/QfM14QoYVaKujwxfS39OSpjFzdr0 vPzhAYPF7ZGH25c9DYukzjUjmrJPsqEvMGKtnBIBm065tntgHNai9tUCS0oBqkW0G9+b IgloP6nj/bz43RMR7lwckJ7oiBMNEuACDsN0nTkocjJhesehcgZUuL7cZzD82dSN9JG0 caNhrdlOA15kAzCr/YpC/BEpGFHpoDczRuQwBmA0AbwWzs9ymIZikL/vtLW+NaDuqfZB ClRew9wSDkgJ39sdCUHI6FwfqbWte+YbVu6lWd0btzZgZaVj8xRLnoPxjVFy9w1EBgHZ GH7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719436499; x=1720041299; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uOqb7iUiwhA2o4o20fNdYmTXz8CW3uEx/Mkh3DsIx/w=; b=nYiXwEmTRhMGBK5lH3qLsUQsNLMz5AElnM17xS2CEkkzNsiU3ak49+mv97mYfJpVR5 n0FMHbXKs2F6lKNEanY0P0EP13HhhyNQXDncWYigmJN8CvCvvx41p3qA5mNJqgVDEY8l 4j+jucsXKO38FQnN2N3ZNP4j6Wr+YCBMzywYyl6+F/AuVv6IucP83UzEH6jIatFBkMPs UpHV9d028hXPD5S+a4ITWeVjwkFBUmcDjlQyC3kyea5bdQ0AgmN/au4YQM/LvKpK8IAn 08Pi5DfD6daRzoeb5Tt1J1tPgptepnMc4pftERPmqlezHalSD0WhKLuBblKyZMrW8CUQ 05kg== X-Gm-Message-State: AOJu0YyJzOifzBQwCAQUGhw131SQOArOO8CpkY4267IzNsOo+UrUT/bF 250DGS+a3ve5/dRsy9pm3w6NVCH/yiW6M6yrpc0g1acAkwap1+cKwUQNxVZAKMiSL3Payrsq7Li U31RgF1x3WbRiLgqWTqapPMqimAzIQq9KOJUNRmv4XYPOe9aqgjiVp/iAGwI6GnajC1oRZ9a229 /6/ce6MGnU1XmbNXd/OBXhlAvZZdPxbL0Noj2gUrNL X-Google-Smtp-Source: AGHT+IFevpkU7d00KJGpZ1YZ8kFZYO8Jg+WJLkUliyuScip3FeivEl8aRaok/4RE5PY/huHt+sJ6Iw== X-Received: by 2002:a92:c566:0:b0:374:9efc:b67 with SMTP id e9e14a558f8ab-3763f69374cmr161898945ab.25.1719436499279; Wed, 26 Jun 2024 14:14:59 -0700 (PDT) Received: from smtpclient.apple ([2601:283:4600:6770:1058:1c9c:6c8b:173a]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-3762f38b9adsm29294275ab.60.2024.06.26.14.14.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Jun 2024 14:14:58 -0700 (PDT) Content-Type: multipart/alternative; boundary="Apple-Mail=_F0B62AFE-D814-4872-A23B-D355A15DAD9D" Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: [PHP-DEV] [Early Feedback] Pattern matching Date: Wed, 26 Jun 2024 15:14:47 -0600 References: <2a6b92eb-d5e9-4a1a-9548-a068ac42ebd2@app.fastmail.com> <1E295280-619B-4490-B53C-0899B64F9215@chaz.works> <97a93ae2-5202-47eb-bf51-ec1e976ea765@app.fastmail.com> <78D0FFF7-3867-4D71-B0C0-FA23E5121C39@rwec.co.uk> <10390963-0c2c-441a-bcce-20a0433948c5@app.fastmail.com> To: php internals In-Reply-To: Message-ID: <800575B0-A75B-49B6-B72A-FD1F67966367@miles.systems> X-Mailer: Apple Mail (2.3774.600.62) From: richard@miles.systems (Richard Miles) --Apple-Mail=_F0B62AFE-D814-4872-A23B-D355A15DAD9D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I wonder if this could be helpful in implementing Generic Classes? https://wiki.php.net/rfc/generics=EF=BF=BC Interface Boxable {...}=20 class Box {...}=20 Taken from the RFC ^ Best, Richard Miles --Apple-Mail=_F0B62AFE-D814-4872-A23B-D355A15DAD9D Content-Type: multipart/related; type="text/html"; boundary="Apple-Mail=_AE86829C-29D6-41DE-9766-C7187BB289AA" --Apple-Mail=_AE86829C-29D6-41DE-9766-C7187BB289AA Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii I wonder if = this could be helpful in implementing Generic Classes?