Re: [RFC] Enumerations

From: Date: Tue, 08 Dec 2020 20:07:26 +0000
Subject: Re: [RFC] Enumerations
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-112472@lists.php.net to get a copy of this message
On 08.12.2020 18:40, Larry Garfield wrote: > * We're going to shift Enums to be a single class with a bunch of secret properties inside > to hold the different case object instances, rather than a class per case. That should make the > overall memory usage lower, especially for enums with a large number of cases. As an unfortunate > side effect, this will preclude per-case methods, at least for now. :-( Imo, this is good. This whole sub-classing part looked to me as too much (at least for this step). Thank you for all this work. -- Aleksander Machniak Kolab Groupware Developer [https://kolab.org] Roundcube Webmail Developer [https://roundcube.net] ---------------------------------------------------- PGP: 19359DC1 # Blog: https://kolabian.wordpress.com

« previous php.internals (#112472) next »