Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116899 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 81248 invoked from network); 19 Jan 2022 18:05:48 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 Jan 2022 18:05:48 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9FC2F18033A for ; Wed, 19 Jan 2022 11:16:48 -0800 (PST) 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_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 19 Jan 2022 11:16:48 -0800 (PST) Received: by mail-lf1-f43.google.com with SMTP id x7so12162407lfu.8 for ; Wed, 19 Jan 2022 11:16:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8VDMgbskLFs9jL2zyBW9+10Pzws2pn3XemVXQFP0js4=; b=WZQj1LBNp8z6aawqQfRiLB6oE7/hX4hJ9X0IvluDGdJDcP83kfR+WRhG5l7sWURlo3 Lj0GR0gbJw4R8rGHhDydyhFhWkRN9R8zBD5itjTEBwVUlTJAMHJTui46blXf2uMvQcGz srWHjnINh822C7Et1eWzVuhHKy7vM++SMx+838zeNC4bYSOdUoJD1UXoU/lpZIQImK62 DO1JdK9dgJ17MdwIgWOujZjI7Zt/VlBRY7bJshvGHnk2BOwreg2oz8vte8GphYfIHSuy 7WNZEUg0Pbbc/FEGhe3hbfdOQV2za8ViX6l2w5bjCeeTGMTN3Pu26pUeT0VjuZL6AXCP GgmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8VDMgbskLFs9jL2zyBW9+10Pzws2pn3XemVXQFP0js4=; b=suxTRx5kzKca7zHQ5YqbinaYgDWhre9sVeiuxye7MBiJ7KNvOnQti6A86+rqriYwrt L0X5QOI98bKZPaBySAT1PEagKXaEaUrUDT3/+Kb+s8tWKAADVPCHA7rSQgpPqNe2Q47t yYWXanKgCFGbc4xT5aMbMgaK+Nm/UpACLljWs/qzrMe6z6TjRLho5p3TPVtycLcH78vy 1NCWA6GI+v1q0wd+ddQ+W+pOdZaOKqjIFaQTivDSC4e7uYGwzcFyAmQa+bHhl9WZO3j/ kMT+2idIr4UWQfUJomHFUxP2IieSyKbQ4HPgqrga/g5f6REgjh4T9LpEudiWNl7B82gT NPdQ== X-Gm-Message-State: AOAM530kqF/hztbYJT+7lpJMvY8iZFDLa9tjYHf99vCefS142kKZynR1 u2S+p6u/pv+AD9ixX8KGTMa1c1d7N2PqZVUl7UnBn7e2 X-Google-Smtp-Source: ABdhPJzQmpJ7KA3soSOwKUdVJBNL1UGb+KxHRxxVCg0F1HT9WIBy9sPb3k2WbBy4hJ8BV8ml64KxUGyEzxrVjFCHzgc= X-Received: by 2002:a19:5e16:: with SMTP id s22mr27672466lfb.209.1642619806632; Wed, 19 Jan 2022 11:16:46 -0800 (PST) MIME-Version: 1.0 References: <1641335738.195767637@f174.i.mail.ru> <5a4aebf8-e592-4517-8930-d18b112ef1fd@www.fastmail.com> <5a99809d-afda-546c-5a11-a4f0f821aa37@korulczyk.pl> <6E50C348-9452-40E1-ACE8-06DED11C9136@gmail.com> <9070564d-e138-81f6-c757-812d8962416e@korulczyk.pl> <23f78a61-a73e-eaa3-861f-75e9bca28485@korulczyk.pl> <262352f2-a3e6-272d-1118-5455497217a7@gmail.com> <6ABDE9F5-C69A-4FEE-9736-F2DED514184A@newclarity.net> <3543d7e3-9a26-25f8-8c48-d646431e84a2@gmail.com> In-Reply-To: Date: Wed, 19 Jan 2022 11:16:35 -0800 Message-ID: To: Chase Peeler Cc: Rowan Tommins , PHP internals Content-Type: multipart/alternative; boundary="0000000000001350ac05d5f43a80" Subject: Re: [PHP-DEV] RFC: Trait expects interface From: jordan.ledoux@gmail.com (Jordan LeDoux) --0000000000001350ac05d5f43a80 Content-Type: text/plain; charset="UTF-8" On Wed, Jan 19, 2022 at 7:07 AM Chase Peeler wrote: > > This can still be handled with abstract methods > > While it is technically possible (I also came up with architecture hacks), it is... not a good solution. It is technically possible for the __toString() method to increment one of the properties on an object, that doesn't mean it's a good way to do it. It is technically possible for the __set() method to mutate a database, but that doesn't mean it's a good way to do it. Jordan --0000000000001350ac05d5f43a80--