Re: [PHP-DEV] Trait constants

2021-05-19 Thread Guilliam Xavier
On Wed, May 12, 2021 at 12:22 PM Stephen Reay wrote: > > Any thoughts on > https://github.com/stephenreay/php-rfcs/blob/master/trait-constants.md ? > Hi Stephen, I agree with what has already been said, i.e.: that's a desirable feature, but probably needs a proper RFC for more discussion.

Re: [PHP-DEV] Trait constants

2021-05-12 Thread Stephen Reay
> On 12 May 2021, at 16:44, Nikita Popov wrote: > > On Wed, May 12, 2021 at 11:38 AM Guilliam Xavier > > wrote: > >> >> >> On Sun, Jun 28, 2020 at 2:34 PM Nikita Popov wrote: >> >>> On Sat, Jun 27, 2020 at 3:53 PM Stephen Reay >>> wrote: >>> Hi,

Re: [PHP-DEV] Trait constants

2021-05-12 Thread Nikita Popov
On Wed, May 12, 2021 at 11:38 AM Guilliam Xavier wrote: > > > On Sun, Jun 28, 2020 at 2:34 PM Nikita Popov wrote: > >> On Sat, Jun 27, 2020 at 3:53 PM Stephen Reay >> wrote: >> >> > Hi, >> > >> > It’s always struck me as slightly odd that traits don’t support >> constants >> > the way classes

Re: [PHP-DEV] Trait constants

2021-05-12 Thread Guilliam Xavier
On Sun, Jun 28, 2020 at 2:34 PM Nikita Popov wrote: > On Sat, Jun 27, 2020 at 3:53 PM Stephen Reay > 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

Re: [PHP-DEV] Trait constants

2020-07-07 Thread Stephen Reay
> On 28 Jun 2020, at 19:33, Nikita Popov wrote: > > On Sat, Jun 27, 2020 at 3:53 PM Stephen Reay > > 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

Re: [PHP-DEV] Trait constants

2020-06-28 Thread Nikita Popov
On Sat, Jun 27, 2020 at 3:53 PM Stephen Reay 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

Re: [PHP-DEV] Trait constants

2020-06-27 Thread tyson andre
> 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? > Would an RFC be needed? I don't think there's any insurmountable obstacles, but it would be useful

Re: [PHP-DEV] Trait constants

2020-06-27 Thread tyson andre
> 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

Re: [PHP-DEV] Trait constants

2020-06-27 Thread Mike Schinkel
> On Jun 27, 2020, at 9:52 AM, Stephen Reay 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

[PHP-DEV] Trait constants

2020-06-27 Thread Stephen Reay
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