On Tue, Jan 31, 2023, at 3:01 PM, Máté Kocsis wrote:
> Hi Everyone,
>
> A few years ago, Benas Seliuginas announced the "Typed constants" RFC (
> https://externals.io/message/110755) which apparently had a
> positive reception overall.
> Unfortunately, there were some issues with the implementation (namely, with
> the parser)
> so the RFC was stuck.
>
> A few weeks ago, I reached out to Benas whether he intended to resurrect
> the proposal, but
> due to time constraints, he couldn't, and was OK with me continuing it.
> With some help from
> Bob Weinand, I managed to overcome the implementation difficulties, and
> adapted it
> to the newly added type-related features.
>
> Please find the updated RFC here:
> https://wiki.php.net/rfc/typed_class_constants.
>
> Regards,
> Máté

One question:

public const int TEST1 = C;

In context, is that supposed to be TEST = C?

That example in particular is very confusing to me; I don't actually grok what 
it's even doing.

Aside from that, everything else looks good to me.

--Larry Garfield

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to