Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126873 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 9E64A1A00BC for ; Thu, 20 Mar 2025 17:00:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1742489904; bh=yjaveF+/I5sRjqE8hsHsioR3JKqhhHjzOCUTafRHCQ4=; h=Date:From:To:In-Reply-To:References:Subject:From; b=PRuD1e31KZWGp8qZjTVhNmfTdlJKD+DiRV9ASF7xRUn11o5XiPGri5nQJN0pGDTGJ yT9W4C6HaNQtgh4W4SM4XU5X1js14GpviH18m/L7JzBdKZE6YeJuTN7O4VxNvhVOu4 d72skjuxVpjjSYzE1ACuihBWTkzTW9NAbdOgbgbarj1DaByY2dNCf78Dr8up//TyKc ozBXtFFelPhGbJNYX3IZbJKUZ9sVaFH3scdDH8Qf7bjlppi+Enu6vKWwxdlHD/+BrJ A2poUoC3ZcUMM+0/KnY4wNgWH5C+dfoNSVhNENAyCSHaMnP/LiaHPg+EvOWLcmGCcF pX+t1xL42l1SQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A5EA91804D4 for ; Thu, 20 Mar 2025 16:58:22 +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=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fout-a1-smtp.messagingengine.com (fout-a1-smtp.messagingengine.com [103.168.172.144]) (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 Mar 2025 16:58:20 +0000 (UTC) Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id 3FE3F1383657 for ; Thu, 20 Mar 2025 13:00:51 -0400 (EDT) Received: from phl-imap-06 ([10.202.2.83]) by phl-compute-04.internal (MEProxy); Thu, 20 Mar 2025 13:00:51 -0400 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=fm1; t=1742490051; x=1742576451; bh=Q6iDinmZVLSvu6YzikNy6 WU6ALVI5960bi1pgBoDtb0=; b=GJ1t+dQ7sBUf7J3mF5yc5H3lh6SdQJZOJnejY v39f3XO8fFQ2ryq26eKxmCo6dN+l9TU+bkbAJmseReVFct0qNvm5mjmV97wC0h+g oxibKXYEddr0KI3ifQ528d12d6BSWgi4QJUz1Az0AWhFLfJ4ENroWNYE/DoB36Fg a8jEbQWb0U4XksuQvNteEH5tL+nSJuR5biRJmPojgFfG1YFdhx++VOGFc/uje4ju jivA+dPVc5wGcXBNtlw6BrNgn76v3v0TwFMjGk7dTC+uRaRY99k9jaiqAi5mFpCO B5BN/s65LaPlpMsiIVjRIhNnu/bl4SG4h335nHSfIpJPdPimA== 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=fm1; t=1742490051; x=1742576451; bh=Q 6iDinmZVLSvu6YzikNy6WU6ALVI5960bi1pgBoDtb0=; b=Ihq3FkBv6k5HFWccV Z2HXMWJm6lm/jSAMvMNnBScI4ho1PJhb/TM3ZO5vYaVF+jd3Grcaf1P+Itiepohl U65sFLto1x/DZqk2OsWpTFFoqh9LUdB1JrXqY2jKkJ5aZ3s0MHb4BL1bwQeN/SzK AMAKP1i76yf0FN1SWZUgctxLkL+ETQCxzOuB58vWPGW6aeCBfd2w7x0KtJgWDEGA 9b5zd9kHiZCD8yKSIY3ahPrH6yrIOyrSo5etVXJ0DAti+RgOjpDL/zPh9DzAqVuW 1mUcZxbHrDCOYZCflZsJhgOkPlH1dquH1DJNlPN/7urCHrlaTuchzf2st/rE81jR rPZ/A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddugeekjeehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepofggfffhvffkjghfufgtgfesthejredtredt tdenucfhrhhomhepfdfnrghrrhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrh hfihgvlhguthgvtghhrdgtohhmqeenucggtffrrghtthgvrhhnpeevueeggeevgeevieet teektedvteetiedvteevtdffjeegueduheevhfeviedvvdenucffohhmrghinheprhgvug guihhtrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf rhhomheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhmpdhnsggprhgtphhtth hopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehinhhtvghrnhgrlhhssehl ihhsthhsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 06EDC29C0075; Thu, 20 Mar 2025 13:00:51 -0400 (EDT) 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 X-ThreadId: T85b966447eba9d5f Date: Thu, 20 Mar 2025 12:00:30 -0500 To: "php internals" Message-ID: In-Reply-To: References: <084101db94b8$73da47e0$5b8ed7a0$@glaive.pro> Subject: Re: [PHP-DEV] [VOTE] Optional Interfaces Content-Type: text/plain Content-Transfer-Encoding: 7bit From: larry@garfieldtech.com ("Larry Garfield") On Thu, Mar 20, 2025, at 11:09 AM, Gina P. Banyard wrote: > Frankly, the comment from u\phuncky [1] mentioning the possibility of > bad interactions with default interface methods (something I think is > more important than this) is reinforcing my opinion that this RFC solve > the problem in a bad way. > And another user [2] was basically suggesting my previous solution of > adding support for type classes/runtime implementation of interfaces. > > Best regards, > > Gina P. Banyard > > [1] https://www.reddit.com/r/PHP/comments/1jbcbtx/comment/mhtpwa2/ > > [2] https://www.reddit.com/r/PHP/comments/1jbcbtx/comment/mhvxo5j/ > I quite like the Rust-ish style, but given PHP's small compilation units and autoloading needs, I don't know how it could be done. (Someone wiser than I may know of a way, but I cannot think of one.) --Larry Garfield