Re: Trait constants

From: Date: Sat, 27 Jun 2020 15:59:43 +0000
Subject: Re: Trait constants
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-110745@lists.php.net to get a copy of this message
> On Jun 27, 2020, at 9:52 AM, Stephen Reay <php-lists@koalephant.com> wrote: > > Hi, > > It’s always struck me as slightly odd that traits don’t 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’t allow constants (either technically > or philosophically)? > Moreover, what’s the opinion(s) of the list, on adding support for this? Yes. Please. -Mike

« previous php.internals (#110745) next »