Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110741 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 28689 invoked from network); 27 Jun 2020 15:04:42 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 Jun 2020 15:04:42 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 95CB91804E1 for ; Sat, 27 Jun 2020 06:52:54 -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.0 required=5.0 tests=BAYES_40,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS36024 206.123.114.0/23 X-Spam-Virus: No X-Envelope-From: Received: from mail1.25mail.st (mail1.25mail.st [206.123.115.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 27 Jun 2020 06:52:53 -0700 (PDT) Received: from home.th-ayu.reay.family (unknown [49.48.240.146]) by mail1.25mail.st (Postfix) with ESMTPSA id B1872604CB for ; Sat, 27 Jun 2020 13:52:48 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Message-ID: Date: Sat, 27 Jun 2020 20:52:43 +0700 To: PHP Internals X-Mailer: Apple Mail (2.3608.80.23.2.2) Subject: Trait constants From: php-lists@koalephant.com (Stephen Reay) Hi, It=E2=80=99s always struck me as slightly odd that traits don=E2=80=99t = support constants the way classes and interfaces do. I tried to find an explanation of the lack of support in the original = RFC, and came up empty. A consequent discussion in R11 has led me here. Can anyone working on internals explain why traits don=E2=80=99t allow = constants (either technically or philosophically)? Moreover, what=E2=80=99s the opinion(s) of the list, on adding support = for this? Would an RFC be needed?=20 Cheers=20 Stephen =20=