On 06/12/2020 00:17, Paul Crovella wrote:
enum cases have no state
Unless there's a bit left out from this RFC this is not completely
true, you've just limited them to annoying ways of working with data,
e.g. static variables.
I'm not sure what you mean here, but it sounds a bit like you're s
5
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
test
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
test
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
On Sat, Dec 5, 2020, at 5:23 PM, Benjamin Morel wrote:
> Thanks a lot for this RFC, Larry and Iliya! I can't imagine the amount of
> thought and work put into this.
> Enums are definitely a most-wanted PHP feature.
>
> I played a bit with the early implementation, and love it so far. Here are
> my
On Sun, Dec 6, 2020, at 9:11 AM, Rowan Tommins wrote:
> Note that Larry's longer term plan is for "algebraic data types",
> including "tagged unions": https://wiki.php.net/rfc/adts Unlike
> straight-forward enum cases, these are not singletons, and each instance
> has its own associated state.
VCS Account Rejected: kaiili rejected by cmb /o\
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
VCS Account Rejected: just-test rejected by cmb /o\
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
VCS Account Rejected: just-test2 rejected by cmb /o\
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
On Sun, Dec 6, 2020 at 7:12 AM Rowan Tommins wrote:
>
> On 06/12/2020 00:17, Paul Crovella wrote:
> >> enum cases have no state
> > Unless there's a bit left out from this RFC this is not completely
> > true, you've just limited them to annoying ways of working with data,
> > e.g. static variables
On Sun, Dec 6, 2020 at 7:49 AM Larry Garfield wrote:
>
> On Sun, Dec 6, 2020, at 9:11 AM, Rowan Tommins wrote:
>
> > Note that Larry's longer term plan is for "algebraic data types",
> > including "tagged unions": https://wiki.php.net/rfc/adts Unlike
> > straight-forward enum cases, these are not
11 matches
Mail list logo