Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125970 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 4974D1A00BD for ; Sat, 16 Nov 2024 09:02:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1731747898; bh=P9BmruzieHkT2ndsqEk+fgiNfhAffV1sLRvfmziPK4k=; h=From:To:References:In-Reply-To:Subject:Date:From; b=bu81OdD0G+PuvI/LmKhmD/gikOdf3WM/1cByzbxRFsNLbRiyj+ugNw52FC53/e2kX 6dOhhnnNZ1AgzCduDi6CPldtMSZRD5xV57MBWf9Ko01RQBKnNAK6Yy0r9zcq0ypXcB LUD0KUtjTaGaFX5xuTnVZEmq8h/T1IWIYbdF/bdTSVywmX7s/A13VpSfNdko6mXqVO 66iQ0FIuKiV8WjCskFR8Kmkliofm1Dq3Wby85AhWz9QMGJWB23rpDHHyPvJKgU2HgA 2qcz26gP7byiBZUqxoWz98Wo2es1lIdADM0PJajZ6CLaOYYgg3Kzx2HN1/TZixXA5S pxfB62Jlv2STA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 329DD18004B for ; Sat, 16 Nov 2024 09:04:57 +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=ARC_SIGNED,ARC_VALID,BAYES_50, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_PDS_PRO_TLD autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from heron.birch.relay.mailchannels.net (heron.birch.relay.mailchannels.net [23.83.209.82]) (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 ; Sat, 16 Nov 2024 09:04:55 +0000 (UTC) X-Sender-Id: yszpovajlk|x-authuser|juris@glaive.pro Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 0B7AC1C327A for ; Sat, 16 Nov 2024 09:02:17 +0000 (UTC) Received: from server42.areait.lv (100-112-89-156.trex-nlb.outbound.svc.cluster.local [100.112.89.156]) (Authenticated sender: yszpovajlk) by relay.mailchannels.net (Postfix) with ESMTPA id 149271C327F for ; Sat, 16 Nov 2024 09:02:15 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1731747736; a=rsa-sha256; cv=none; b=DQMxejKT75KUNRnvQdk38OvVm0PaKKuXryvAeEcLEtpsAqQ3m6yzEhMOZN53UakXFys8wd iMRgBssT6lZya3nMwtcq8dxJCxjebREuz2P8o67jctM6vSYcDbENGFHzQKrc4PGd1b2TWQ Ut2mwd7arbdaPcFFXp1//F7qTQhnJUiZRMepvgTz/hmAC6pt2R3Z/RweC06LJBxpqkfJ0F Be4XzcJ5byTTeXzBBPgkVz/OXkJdZRWnSWBQjlMw2yHdpGB7V9fxD1r9opuqZHU5q/4U50 /ee9BppdX64+91U5IAal1on3Ebw+86XD2uCiMT+wL3A0xLoYyokRlN+E9XAkzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1731747736; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=FJ7NApvGv7JhY+iTkrIIvY3Cqyk50kNgBBkxay5yDPU=; b=Ey/R1jtCHlnLiiheGz+wSuCwtnmhXq7dKjU4u7aO09+pwZKL8/B//Et9Vp96MuUiXgAfXn SLhRV5HYysfMlpZiYeNxsTPZereoOVOns12wmm/IxOyff5BIrZuuTEPIKx0DulouYz+IVW XxqZFopVqD9n5h7IKdsBbkZ0aVjDQ0i6mRpJLXvuiGjTBuvPL+EH6Mx0uXYCrlM1efbYkk G8U0QC4x1aMlg8OsSHcEJhsmVQERmP481TuFWgSvsXsSEEihhkbfueDl1NoWMcPNdS19E0 gzwVBBMaFdjceCLl2Dwx9p8o+IpgtLowAmw+iiDlG0FrJMZVV4M5MzokJv0wTw== ARC-Authentication-Results: i=1; rspamd-7456989c76-9qxrm; auth=pass smtp.auth=yszpovajlk smtp.mailfrom=juris@glaive.pro X-Sender-Id: yszpovajlk|x-authuser|juris@glaive.pro X-MC-Relay: Neutral X-MailChannels-SenderId: yszpovajlk|x-authuser|juris@glaive.pro X-MailChannels-Auth-Id: yszpovajlk X-Snatch-Invention: 553eb54438b358d0_1731747736609_3636650772 X-MC-Loop-Signature: 1731747736609:2271243512 X-MC-Ingress-Time: 1731747736609 Received: from server42.areait.lv (server42.areait.lv [212.7.207.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.112.89.156 (trex/7.0.2); Sat, 16 Nov 2024 09:02:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=glaive.pro; s=default; h=Content-Type:MIME-Version:Message-ID:Date:Subject:In-Reply-To: References:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=2SNEKByS5R7lTRNypmZ59gSXiUEveq4/yTbZ9KOkjTM=; b=X7JAYhyzooIl4nRhw0eo2IdWPx fNH2k4WCg0bUnsn2izhs5hziKhCgRCf9XWuzMs7sWqjf9Z+zgSYhAZkjgl8KZrRA3a6X3nT4RoiCe +QDQrGXKrOquzd1VPMBDjsxriVYbyCuDE1K7EsKDK0/t1KMgFci/SeYzT1IqNtMBjnSw6/CCL/tiR L8nf5NziUyU3L6Y9RVtuliR2bzQj+f+sA1U3DVxrMttRyZzVMQQqo+EtvIFzBP+oGx7O/MEN3VVT2 YgMK6GX2k4IFSDhg3lDjMmSq/8oUxr8wHnVjHls4VK4BnfvbTGRD0UqUiECSfxnLU5iOK3ItNkU9B 2YI8PNcw==; Received: from [77.93.29.116] (port=49403 helo=LAPTOPHKIOPCGI) by server42.areait.lv with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1tCEh1-003vPx-33 for internals@lists.php.net; Sat, 16 Nov 2024 11:02:13 +0200 To: References: <0a2f01db37b6$daba4e60$902eeb20$@glaive.pro> In-Reply-To: Subject: RE: [PHP-DEV] Optional interfaces Date: Sat, 16 Nov 2024 11:02:09 +0200 Message-ID: <002c01db3806$383ad2e0$a8b078a0$@glaive.pro> Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002D_01DB3816.FBC3C9F0" X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQFHeKSYI936o/ZS/XnvzbYTtOVpEgGZLZscs9PFHwA= Content-Language: lv X-AuthUser: juris@glaive.pro From: juris@glaive.pro ("Juris Evertovskis") This is a multipart message in MIME format. ------=_NextPart_000_002D_01DB3816.FBC3C9F0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 ------=_NextPart_000_002D_01DB3816.FBC3C9F0 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Is there some reason you cannot do = this:

 

 

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

 

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.

 

Juris

------=_NextPart_000_002D_01DB3816.FBC3C9F0--