Re: [PHP-DEV] [RFC] Enumerations

2020-12-06 Thread Paul Crovella
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

Re: [PHP-DEV] [RFC] Enumerations

2020-12-06 Thread Paul Crovella
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

[PHP-DEV] Re: VCS Account Request: just-test2

2020-12-06 Thread PHP Group
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

[PHP-DEV] Re: VCS Account Request: just-test

2020-12-06 Thread PHP Group
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

[PHP-DEV] Re: VCS Account Request: kaiili

2020-12-06 Thread PHP Group
VCS Account Rejected: kaiili rejected by cmb /o\ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] Enumerations

2020-12-06 Thread Larry Garfield
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.

Re: [PHP-DEV] [RFC] Enumerations

2020-12-06 Thread Larry Garfield
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 >

[PHP-DEV] VCS Account Request: just-test2

2020-12-06 Thread just-test
test -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

[PHP-DEV] VCS Account Request: just-test

2020-12-06 Thread just-test
test -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

[PHP-DEV] VCS Account Request: kaiili

2020-12-06 Thread kaiili
5 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] Enumerations

2020-12-06 Thread Rowan Tommins
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