Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118206 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 3727 invoked from network); 6 Jul 2022 12:31:01 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Jul 2022 12:31:01 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1C7A5180384 for ; Wed, 6 Jul 2022 07:24:03 -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_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-yb1-f169.google.com (mail-yb1-f169.google.com [209.85.219.169]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 6 Jul 2022 07:24:02 -0700 (PDT) Received: by mail-yb1-f169.google.com with SMTP id i14so7852450yba.1 for ; Wed, 06 Jul 2022 07:24:02 -0700 (PDT) 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=1O8WqNmBeaEPf9hFcW7Cv5fjhd4FwTOMX+ZMmIsU3Sk=; b=EPbE1SHPvFjDKKdgUXXfwCxrbfrKaMa82hRDJG/K8p8ba8/3utMdrKDuPElgfyUxBi Mw9P0xH71Su+SHv6XsHkgwv7+fPW8LyuXCvgzvrzPPWNftqPD4g9+d5YN0puWgBhftQI 56ZFn8x0Y6jN4u8JYKUaJhk7JCLya71ViQq+be9GltYqD3uqlhs6YkjfeOTbS1jCLWf+ z2fdJ/XUBcRAxZ2AP2r0naBvZRH3ox3fagLyf3JfbmgntEr3jNOulh0dypXWw5kW3hNO oImdOQzqKtHG12ltWiCIkSp4zpjnr5J9V5di4DGdQ46dLfB6LKZbl/jXnKdDr4+ZizhD Kf2w== 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=1O8WqNmBeaEPf9hFcW7Cv5fjhd4FwTOMX+ZMmIsU3Sk=; b=PhBB2GcEMq3gSpbN1V+eBRqF4z0wVhuKfN1R9SqAEFIu1yVyi9coCcHRcL/6wvigdk Ss+6c/iOwALIjfhl5Dz6KdLC13PvqUn578oqurK4r3T85ukMDBqgU+5Pd7bPnvfCwxNF X9+rkO4njwUlXDKs70kqhcJrx1VKQj7I+6kO1FZFtcLElWgaBJDGQ4UE5GyfdysJAfDA EOxdLTeD/ob0RkbnpzI2W47rLsiqJXeJ5XLpiaduWImbwau821NaDBclJaHP8AXdrmco xZfPD/cHMuDqd6nZibjqC7yJ7j5kZKVU6vBm+IafsmOTyLlxJbDqEt80bawoUNnZkVqf jWNg== X-Gm-Message-State: AJIora+IG6X1BLUfJxXxDW9VvwcAmElP4vGDKVr3wDndNdDiQIjG6k9W bfxDOydVd6f1r7MJN6Dp4zo9Ghx9Pi2ToBdbmRugpsp2Xsb+NQ== X-Google-Smtp-Source: AGRyM1sJLiKciCBtEx9gWKj0NhZiRLUgjY8qo/JHp2gP1RY8l7b3NVhahDr43RY7giSm52q2h1faCp7AT49EI7SkrvQ= X-Received: by 2002:a05:6902:1209:b0:66e:9640:1447 with SMTP id s9-20020a056902120900b0066e96401447mr3206428ybu.152.1657117441957; Wed, 06 Jul 2022 07:24:01 -0700 (PDT) MIME-Version: 1.0 References: <9d4e1c05-651f-41d5-8336-1291f94e58b0@www.fastmail.com> In-Reply-To: <9d4e1c05-651f-41d5-8336-1291f94e58b0@www.fastmail.com> Date: Wed, 6 Jul 2022 16:23:49 +0200 Message-ID: To: Larry Garfield Cc: php internals Content-Type: multipart/alternative; boundary="0000000000007aa32505e323b871" Subject: Re: [PHP-DEV] [RFC] [VOTE] Constants in traits From: ocramius@gmail.com (Marco Pivetta) --0000000000007aa32505e323b871 Content-Type: text/plain; charset="UTF-8" On Wed, 6 Jul 2022 at 16:17, Larry Garfield wrote: > On Wed, Jul 6, 2022, at 4:45 AM, Marco Pivetta wrote: > > Hey Shinji, > > > > On Tue, 5 Jul 2022 at 23:39, shinji igarashi wrote: > > > >> Hello internals, > >> > >> I've started the vote for the Constants in Traits RFC: > >> https://wiki.php.net/rfc/constants_in_traits > >> > >> The vote will end on 19. July 2022. > >> > > > > I voted "NO" on this. > > > > Reasoning: > > > > * traits are pretty much unnecessary in the language. Since their > > introduction in PHP 5.4 their usage went from "let's try this out" to > "how > > do I burn this with fire?". I don't want traits to expand in scope: they > > already do enough damage with their built-in accidental complexity. > > Point of order: This is a subjective position not universally held. > Traits are certainly misusable, but so is literally everything. If used > judiciously, I have found them useful. Certainly they are better than > abstract classes in many cases. > > You may not like them, but that doesn't make them intrinsically harmful to > the language by their existence. They are not. > Certainly, but unnecessary features are bloat, and bloat is a clear negative. A feature's value must outweigh its carried maintenance and cognitive effort in order to justify its existence. As someone who worked a lot with analyzing traits (especially in reflection context), traits don't respect that requirement, **BY FAR**. Also, the idea of the RFC process here is that voters bring in their own requirements: my requirement is as subjective as yours. Greets, Marco Pivetta https://twitter.com/Ocramius https://ocramius.github.io/ --0000000000007aa32505e323b871--