Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125972 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 C02C41A00BD for ; Sat, 16 Nov 2024 09:39:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1731750110; bh=SB5NN6sCbXYOqvfJExXxzGqKxq/B56sououqEy3jhco=; h=Date:From:To:In-Reply-To:References:Subject:From; b=UATOiJHfnR+TQr+npa22G0b6odJskaRDxjcR0mGCnhq/TKlVhXWh3SyLOGvJoaeTZ ONCzkHryXRljjBGyQXnYmiUNZ535xe40Z07ctHhwgB4uExMkVYGBM/Oo1wGpdQB1IA bNET4ZP1iiRaNfTo6UeyE9BB5M5U6t+1wij3kQoVhVr3B5yN9ijK7g5r9DU6IKguJp sYCILoHRLE9JbNTn1KRpmeMDBV7BsZL1g/APmM8rS9cZXXhOPwVjO9/dlVUvntbFYd mOKkhrRd0WBhlQEPsKdtKb+lFvOtHar16ViXrPX0gdfdZ5QaxSOoDi95/CTgfXNkSj nU9HBzY/6k2uA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 32263180076 for ; Sat, 16 Nov 2024 09:41:50 +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,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fhigh-a5-smtp.messagingengine.com (fhigh-a5-smtp.messagingengine.com [103.168.172.156]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 16 Nov 2024 09:41:49 +0000 (UTC) Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfhigh.phl.internal (Postfix) with ESMTP id E9BF91140191 for ; Sat, 16 Nov 2024 04:39:11 -0500 (EST) Received: from phl-imap-09 ([10.202.2.99]) by phl-compute-01.internal (MEProxy); Sat, 16 Nov 2024 04:39:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; h=cc: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=1731749951; x=1731836351; bh=SB5NN6sCbX YOqvfJExXxzGqKxq/B56sououqEy3jhco=; b=w5f7FGOjgpyAUA2pnavlqWSSwU EWsmIUAhBHxsPM2m/wYIgdr6Pnlgkn5umjslZAnFjW8T8I3t5oaY4G4PzDyCx7OI NqCIGiaL+QagD4yh9DOJuKRQxgC4lCMTH44vCFFjc2+gyCz1CO2EFrTLlc2w5Gdz IbNBfYEBl0CDMYJfbbot88ELFzXtfXxT2Z2weFf1JyjjhhrHU812lowKSYGApHu4 MIOaVPJk4ssI1U6VEM29IMQiaUsOHZmCyqPOQpS2owH1LcU40wSKX8kSbKNyiLsg DEt8W353OkAw3RXo297byjlgRtVZD0WNHryHEe2OutnDaWQ+klMycowCINfQ== 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: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=fm3; t= 1731749951; x=1731836351; bh=SB5NN6sCbXYOqvfJExXxzGqKxq/B56souou qEy3jhco=; b=E+XXXhV+c29176DivtbbMk3pu8IiMYJ5lUNoESU/rz/1ItdIBf2 ck0/zc5ngL7jsZ1wTpFR/mDTenFe09OcUx/5Jahmt94/hc3bQh75kQvQZjALxvXq byOpmZXnVbRf+h0CVuK8xj1C0TVqSfjJFbP3zJ4HkqvYaHV8UA32P8IRPy4RgVGZ Uyao2Y/3mKZevimVQwIHd6ImGvDFeTEFmjSWDQwR6hYpZOZ9v7TUlk3NCGYxXG33 lN4A85j7WX49ANHkV9sLiR/CstQpo2Jv1s0mQcyHdXaVqBuDlk5b1fFPipLMP6wC 8/EM4/bikVm6RQoj27FlzJaD6e4qMvBjv+A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrvdeigddtgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecuogfuuhhsphgvtghtffhomh grihhnucdlgeelmdenucfjughrpefoggffhffvkfgjfhfutgesrgdtreerredtjeenucfh rhhomhepfdftohgsucfnrghnuggvrhhsfdcuoehrohgssegsohhtthhlvggurdgtohguvg hsqeenucggtffrrghtthgvrhhnpedtiedtvddvvefhudffhfegleffteegffevkeehkeef leeuuddtieevkedvteejvdenucffohhmrghinhepfehvgehlrdhorhhgnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprhhosgessghothhtlhgv ugdrtghouggvshdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtg hpthhtohepihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 93D0E780068; Sat, 16 Nov 2024 04:39:11 -0500 (EST) 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 Date: Sat, 16 Nov 2024 10:38:51 +0100 To: internals@lists.php.net Message-ID: In-Reply-To: <002c01db3806$383ad2e0$a8b078a0$@glaive.pro> References: <0a2f01db37b6$daba4e60$902eeb20$@glaive.pro> <002c01db3806$383ad2e0$a8b078a0$@glaive.pro> Subject: Re: [PHP-DEV] Optional interfaces Content-Type: multipart/alternative; boundary=c323fe95467c4e238f8b90ddaa597c24 From: rob@bottled.codes ("Rob Landers") --c323fe95467c4e238f8b90ddaa597c24 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sat, Nov 16, 2024, at 10:02, Juris Evertovskis wrote: > Is there some reason you cannot do this: > =20 > https://3v4l.org/hF1vr > =20 > Unless I=E2=80=99m missing something, you can=E2=80=99t patch-define a= namespaced OptionalInterface that easily. > =20 > Anyway, I was not implying this is something impossible to accomplish.= My point is that it would be beneficial to have syntax for expressing =E2= =80=9Cif your app has this interface, our class implements it=E2=80=9D. > =20 > Juris Yeah, I get it now (see my reply to Marco). Even with namespaces, it is pretty straightforward, though: https://3v4l= .org/dmXoB =E2=80=94 Rob --c323fe95467c4e238f8b90ddaa597c24 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
On Sat, Nov 16,= 2024, at 10:02, Juris Evertovskis wrote:

Is = there some reason you cannot do this:

 

 

Unless I=E2=80=99m missing something, you can=E2=80=99t patch-def= ine a namespaced OptionalInterface that easily.

 

Anyway, I was not imply= ing this is something impossible to accomplish. My point is that it woul= d be beneficial to have syntax for expressing =E2=80=9Cif your app has t= his interface, our class implements it=E2=80=9D.

 

Juris


Yeah, I get it now (see my reply to Marco).
<= div>
Even with namespaces, it is pretty straightforward, t= hough: https://3v4l.org/dmXoB