Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118205 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 2232 invoked from network); 6 Jul 2022 12:24:43 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Jul 2022 12:24:43 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DB98718037E for ; Wed, 6 Jul 2022 07:17:44 -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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS19151 66.111.4.0/24 X-Spam-Virus: No X-Envelope-From: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (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:17:44 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id EEE625C005F for ; Wed, 6 Jul 2022 10:17:43 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Wed, 06 Jul 2022 10:17:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1657117063; x= 1657203463; bh=8nkI/A7pfm6B+kxBNWCHqOlNm9Z4Pg0axLXNspwGChE=; b=H TBSK1OPTyMZrFUFMc3WmZ3DQQmEF/fE2bdWZhH9E/+zJ2DlBelX5jb6tf6pA0zts D9Beg/E3dhQfMWOPffjn63sBKSwEnAagGk2c3fOGled3vU2K77ZpCGwGPTJ1iqoy T2L/9gC2w4cEK7Frp4d8qNolX85FXSy4gbGr2OV/cCn3NRHvEMkjf9W2tLkcJwHE d0u+yoUvWoCBAVj6dqZb1EEJbHNxm9sIxTIiHIGY5IjaPUjsYUm6r0zaZ/UZvSPd SnBLorUPzDxh1hiQa9QecurajY7m/nFiN/pQ+VKeqxNAL0zxZeBYpvzMyeF8wWLW 3v2cQkKfKAjT/5OQfzdsg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1657117063; x=1657203463; bh=8nkI/A7pfm6B+kxBNWCHqOlNm9Z4 Pg0axLXNspwGChE=; b=aNYDNH9LzirehSdNsdqxPxyj+Zqy+eAiI+X9ftd/cAn2 vk3qDJuBQ8mF541Er1WqQv57e5jvQ+lo7gb1K83xatMWHWIQDSlgDJVWnkeA2zPa KYMjpM2lTSslYoi3uStO6A+2N481CGaQpc/lrfZSJjXDbDzxvUhxDMLb5ddT3vfr GPKKYs8yo5lCjYmAiu8VIkQUwWY+3O7fLsrFLekoC6fDMnvcNvECpEBTLbYqNA/K Ou89vQLuYJflTppNIp3FKOlUHdczvwHtNzVcoNP4zDBCzwX9bmz6PJ5vI8D5kCoG lb+zsznMDjTb0/Tt+kO4l5x1ng+8OQFndXvz6ZaMCg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudeifedgjeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfnrghr rhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtoh hmqeenucggtffrrghtthgvrhhnpeevheehvdevjeelvdevgfelvefftdejkeelvdekgeeh fffgiedvjefhhfeltdduteenucffohhmrghinhepphhhphdrnhgvthenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhi vghlughtvggthhdrtghomh X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7E05B170034B; Wed, 6 Jul 2022 10:17:43 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-713-g1f035dc716-fm-20220617.001-g1f035dc7 Mime-Version: 1.0 Message-ID: <9d4e1c05-651f-41d5-8336-1291f94e58b0@www.fastmail.com> In-Reply-To: References: Date: Wed, 06 Jul 2022 09:17:23 -0500 To: "php internals" Content-Type: text/plain Subject: Re: [PHP-DEV] [RFC] [VOTE] Constants in traits From: larry@garfieldtech.com ("Larry Garfield") 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. --Larry Garfield