Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120772 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 68651 invoked from network); 11 Jul 2023 12:54:36 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 Jul 2023 12:54:36 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BB138180547 for ; Tue, 11 Jul 2023 05:54:35 -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=-0.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (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 ; Tue, 11 Jul 2023 05:54:32 -0700 (PDT) Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2b6ef64342aso90233131fa.3 for ; Tue, 11 Jul 2023 05:54:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689080070; x=1691672070; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=iSgNtE5BeKcsJBjfEa/Bd5QPsm9y/SgB/nq6BcLhTdo=; b=BrdqOOrTVRpRTr9g3ZhnXYZb4dfuxKNzmrLR1FTW8yi2Z+y/nz89NmR1xpF/nnGwbD nCW8NHkiHVwQ0mc6ph994XWM2dLgNSubX+K0bQMTeUv9FsjXeIbpQb4jS4wkiVxoFdmX 7TMKd+uhU5YzfFBcO2lEbF5sW3+QrgK+GgU+mdLO/Nm6xpCTR2fC1/yVMXPLZWmI92Pa XSAbL7BoK2dolloS2cLCk5//o2CVaysUlPbV/275IYK6PPkF6a5dW47YB8KxTUQUMUOR dnfAY3mqRU4K+tmfe6xLmqvuzr0WG2XENw6zAZJjdT803mkN09LD5JEH2TLywfMKCAAl Od8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689080070; x=1691672070; h=cc: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=iSgNtE5BeKcsJBjfEa/Bd5QPsm9y/SgB/nq6BcLhTdo=; b=JSk4g290TbJ+DRChAn+DdyA2XDREv08KIVmATrdDVroLwzKkecDQDOugiFN7Vlc+Uq a6ZVsTQXNxo0H4ZYtv9o3UcncYeXYYJQA6sxUhGtDZ47uPEcQZRBuV/DBB6ufDchX/HU 7ltC/xDO0thegVEje5wVj1DzlCr46om+/UarBkRLQKqILQifdxlpOvDiF9PDLqWoeYly pAslemvXCZR2NjM22kxQH77S1sRZF35Gx9+eyEmJaGLQ63Jb8cbvBEIYAAsHj6G2VoBF LGw8CHX1X9pQ39ZR1eLFuBWAMujW0JGQlmybVOWs6hYn4RHqOdMyE0Fv6q5hVZv2vQIF cv9Q== X-Gm-Message-State: ABy/qLaiZucVL/f+88HAx6FJ05qvpEoRS6gr35JHO5zh7ulnGvp4e+tU DZTcNZeRMwooLdkjDp1WY6PV/7r9+Ufm46O8XCM= X-Google-Smtp-Source: APBJJlE7D1wI2PGxbHSgvN4Pn4dqNk5BwWes0B7KuaB0TKKLoXXzPJmnKiMhJk7wkBLpLsXMXCR1QJcJRmG3JP7aFC0= X-Received: by 2002:a2e:80c4:0:b0:2b6:9b2e:e352 with SMTP id r4-20020a2e80c4000000b002b69b2ee352mr13637062ljg.9.1689080070315; Tue, 11 Jul 2023 05:54:30 -0700 (PDT) MIME-Version: 1.0 References: <3a3e7781-c2b4-2880-8048-d19458ac287d@heigl.org> In-Reply-To: Date: Tue, 11 Jul 2023 14:54:17 +0200 Message-ID: To: Deleu Cc: Andreas Heigl , internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [VOTE] Interface Default Methods From: landers.robert@gmail.com (Robert Landers) > > a Trait was modified, what gets impacted? Is this not already the case for all tightly coupled code? This RFC proposes to make the least-coupled code in PHP more coupled, so soon, you'll be able to say the same for interfaces (if this passes). I don't understand this RFC. Symfony is a mess in that a class requires an interface, even if there is only one implementation. PHP shouldn't fix that, Symfony should rethink how they're doing inheritance. Abstract classes solve this problem perfectly. It's part of the type system, it's type-hintable, it's mockable, and it's pretty easy to see what inherits it as people who inherit it already know what the base behavior was when they wrote the code.