Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120621 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 94901 invoked from network); 19 Jun 2023 19:20:25 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 Jun 2023 19:20:25 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7A10718050B for ; Mon, 19 Jun 2023 12:20:24 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-oo1-f41.google.com (mail-oo1-f41.google.com [209.85.161.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 19 Jun 2023 12:20:24 -0700 (PDT) Received: by mail-oo1-f41.google.com with SMTP id 006d021491bc7-55e1ae72dceso2266306eaf.3 for ; Mon, 19 Jun 2023 12:20:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687202423; x=1689794423; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=o39hMRywIZBDMdDqm/lkc6Y+nMPYOirSsBMlw3z7cnw=; b=omgCExEU3KjxQb8Aoo8hA96KKY2MVQFIsmgSq+Rt1u1KDtewmeEB6dEmV7DY/jQb4e 9KhTSyMcWr0uB5KRY4+S6dJmM8eVF5XRsbVcW8lBxnPQRphkHC7qfQF4/tTxcuYnzeiY aAyn8lPly67oTyCnCGqobBgmnJjGLO/ldLOWnHhHQLAdiQY5pKuI2NTD17S7BWErairm Ntssvqmq8S3fecRiJPFmnujLvAYaqIQTCM3TWD+/Zrt826CyLbDjhC2r33WVACehVhYU 79WufbWI8htJeZSYATuaYFB6oInrxCNKa3LhCyYgtHZO3/SC9tnb+oLsmCozgOetqooV jGiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687202423; x=1689794423; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=o39hMRywIZBDMdDqm/lkc6Y+nMPYOirSsBMlw3z7cnw=; b=VC/yic7L/3IsolZ4G+dCvC3dno/AWbN2MUyeAOkkdrAYR44fF2WKkceBORQXVfHv2P lsrONBwiw046AKvau0m1aumDDpWOoSkgloGz27uqh77HV3MwTcMqWIg9nFjpSnTh0d9a 4PU1yQKD+sjT/FTjmbvHPVTxoISz9L9OtzCApWQ9x8gxEkvi/OfYDiLo2y+Y4sPZoer+ HBI4bMBerVEJfrNZvv920d2aji6YZ2xTkhxz7wLFeo5pB5dTaBW6wtInuqGD/XJEW5Ma ELc82ZCDZ+Lr0GkRiF8xJmvNN9SYyk6neB1iamSlIGeHyysA0KXQIVU46cn2KuBuDMXU 6GoQ== X-Gm-Message-State: AC+VfDzKcoWzh8xdOt8u+cfBs2uAOWtb7SHKJ+1JBZUDYNOYUQfsLUls pMLMEI2sRLcQuMlwy3jGz1TcWetG2Ig9pfhhujRimhA5 X-Google-Smtp-Source: ACHHUZ4VXkCHQa4y322KQl48yCenKu3S3YftYXtfOwvYnakxYwQlED4OXsL3JIs331bTvjPJ807ZqhYa8tVwt4FzvhE= X-Received: by 2002:a4a:a2c3:0:b0:560:77ed:84d2 with SMTP id r3-20020a4aa2c3000000b0056077ed84d2mr1699771ool.5.1687202423017; Mon, 19 Jun 2023 12:20:23 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 19 Jun 2023 20:20:10 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="00000000000016945305fe806d0a" Subject: Re: [PHP-DEV] [RFC] Interface Default Methods From: davidgebler@gmail.com (David Gebler) --00000000000016945305fe806d0a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jun 19, 2023 at 3:53=E2=80=AFAM Levi Morrison wrote: > > No, there's no attempt to ensure the method body adheres to calling > the public interface. Due to PHP's possible dynamic behaviors, I don't > think it's reasonable to attempt to enforce it at compile-time. I'm > not sure it's worth the effort trying to enforce it at runtime either, > but it would be nice to see lints from static analysis tools which > detect this issue. > Okay, thanks. That's really quite significant, since it changes the feature to one which could allow changes made to interfaces to adversely impact existing clients of an interface without those clients changing a thing. I was excited by the description of the RFC, but I was imagining something more like how Java does it. Personally, this limitation (or rather lack of it) is enough that I wouldn't support it and I'd urge anyone who can vote to carefully consider the implications of the implementation being proposed= . --00000000000016945305fe806d0a--