Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120729 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 77546 invoked from network); 3 Jul 2023 03:01:53 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 3 Jul 2023 03:01:53 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 468E91804B0 for ; Sun, 2 Jul 2023 20:01:53 -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,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,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-yb1-f176.google.com (mail-yb1-f176.google.com [209.85.219.176]) (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 ; Sun, 2 Jul 2023 20:01:52 -0700 (PDT) Received: by mail-yb1-f176.google.com with SMTP id 3f1490d57ef6-bff0beb2d82so4406787276.2 for ; Sun, 02 Jul 2023 20:01:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benramsey.com; s=google; t=1688353312; x=1690945312; h=to:references:message-id:cc:date:in-reply-to:from:subject :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=xOtQz/fnKmr0GxTlpieCF1TggOh9e+rJ1PBskaNrf5Q=; b=DpoXBj8tbKhVhD8Qu0+Dnxjm1CObUIJ6AqDUaCjUGHC59j9x43ZY5YX7VlGSjtJxIj EruFehuKp0K5M1PmZG0bBKJ0A9pS+k8szUQMRL27xOzQqQyk8eaG7JyiU949l1Gx7Lp0 6RiHoKvmwPmz2EMxesD6/qmA5pX0nvXkBFsTNqDRJSVu8XoOF6EjFNswfLcnLNXrYJUE wdhd2YiP4hw7SHg89R5KFNnVdWRFCdyfoPWXKoW8WT3KdsjAlG2AZ4FCJTr8ZHdZYLcN rvyFuGe5Qy3etTElYpwo0SpAWnKqTYr9LA/D74D/aKKDJwrAEiBWowyylf4Uw4AuyJ9R AciQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688353312; x=1690945312; h=to:references:message-id:cc:date:in-reply-to:from:subject :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xOtQz/fnKmr0GxTlpieCF1TggOh9e+rJ1PBskaNrf5Q=; b=M116+9BbMUMPkb8eVN34EpT2B3HpwBsVg66PIawlhqJO95SF+dWmDDROyLIiYZqn0U XQjb5DWyWRHJmzdp1oJfODAbUuAxCcZydQMGejO0Ozjc0gYXtMnc1G8i/nUwn9WQPpxQ cly8KQ7fhlGBqFW6KEsHZoScJFXiGx/cpjufn9RExfjynYNK1/Ku8jFXpLVMnQVjCM3R 89MIqUlAxPJwYqlgsvbo8e8RmwtBure9M8bqwHpk1Q3iZRi++9R/Z10q7V728OsvoeLf WLDKMnTFgh7SeC1TV30mZJm66+VIzVEXUktn53iZpi17fjOoryd4XzRBZJD9KsvyWo5L nQoQ== X-Gm-Message-State: ABy/qLY4F/NLcJ92DxcT0clQf+UhSHKM+2IkLRO5VN8rKEd8W2FZauXU Kd95KwrcDaksKYQUV79/bUgJog87OubSzTAMB93WNg== X-Google-Smtp-Source: APBJJlGzRDoKhqULxGCQ/K/zSIJBNP6tn0xIh8q0o2ZwtXhbTvUQKiaZAlUNejbyKn9CInS7guKDhA== X-Received: by 2002:a0d:ed43:0:b0:577:24d9:4001 with SMTP id w64-20020a0ded43000000b0057724d94001mr8465135ywe.13.1688353312222; Sun, 02 Jul 2023 20:01:52 -0700 (PDT) Received: from smtpclient.apple (h96-61-105-82.lvrgtn.broadband.dynamic.tds.net. [96.61.105.82]) by smtp.gmail.com with ESMTPSA id t10-20020a81460a000000b0054bfc94a10dsm4844243ywa.47.2023.07.02.20.01.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Jul 2023 20:01:51 -0700 (PDT) Content-Type: multipart/signed; boundary="Apple-Mail=_A601BEBC-64D6-4EEE-BCD6-05FEA7AD9792"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) In-Reply-To: Date: Sun, 2 Jul 2023 22:01:19 -0500 Cc: internals Message-ID: References: <4C429940-AA05-4B87-ACFC-093203974175@benramsey.com> To: Levi Morrison X-Mailer: Apple Mail (2.3731.600.7) Subject: Re: [PHP-DEV] [VOTE] Interface Default Methods From: ben@benramsey.com (Ben Ramsey) --Apple-Mail=_A601BEBC-64D6-4EEE-BCD6-05FEA7AD9792 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jul 2, 2023, at 21:43, Levi Morrison = wrote: >=20 > On Sun, Jul 2, 2023 at 7:08=E2=80=AFPM Ben Ramsey = wrote: >>=20 >> I=E2=80=99m probably going to vote =E2=80=9Cyes=E2=80=9D on this, but = since the property accessors RFC won=E2=80=99t be ready for 8.3,[1] and = that RFC covers use of properties in interfaces, how useful will = interface default methods be without interface properties? >=20 > Plenty useful, I think. Interfaces deal with abstractions, so there > are often things you can do without having state. Java's interfaces > don't allow properties, for instance, and they still have this > feature. >=20 > As an example, this poor-man Sequence interface works, because the > behavior and state for `next` is provided by the implementer: >=20 Thanks for the response. This makes perfect sense to me now. Cheers, Ben --Apple-Mail=_A601BEBC-64D6-4EEE-BCD6-05FEA7AD9792 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQToXQMR3fpbrPOmEOewLZeYnIwHGwUCZKI5/wAKCRCwLZeYnIwH GzLGAPwLPV+iVzXEIIL5TC5HYLZl4rrm9Wtj6QnzoHMZgolhBAD/W1HlCMbAgXh3 hnYa2lmm+HWgB8rWjjXH3Fdo21kLSyc= =MU30 -----END PGP SIGNATURE----- --Apple-Mail=_A601BEBC-64D6-4EEE-BCD6-05FEA7AD9792--