Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112472 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 19963 invoked from network); 8 Dec 2020 20:38:18 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 Dec 2020 20:38:18 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7B3091804CA for ; Tue, 8 Dec 2020 12:07:33 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mx.kolabnow.com (mx.kolabnow.com [95.128.36.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 8 Dec 2020 12:07:31 -0800 (PST) Received: from localhost (unknown [127.0.0.1]) by ext-mx-out003.mykolab.com (Postfix) with ESMTP id ACAA640471 for ; Tue, 8 Dec 2020 21:07:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:date:date:message-id:from :from:references:subject:subject:received:received:received; s= dkim20160331; t=1607458048; x=1609272449; bh=skHUJr9Vzg/+vufhjs2 QgwlttFakcLGzeu78h8wCbf8=; b=lBC+6pqEVJUHtSFAQLd0YjYPzRcoeO4Ke4J RImEby5HjhKnyYsF5KNDPypsyuAJ7MP1Dwgek+bMdYIsvpFJlLUuIP4X49zcvPOl EUbUIZDZUcVGyd2+VRs3/nxNkasVRflc9AISy+5cSccGQWEGruD/++BD1W00ZArR A7OvxWBmDSl0vMh7iP5fnpUKu06LwqVkqKcRg7UuA+jEDqshBIbAdt5AjcIqtpfc jEst89YTrahMMLpd0Ge+ZtKmI2Df0hTfAlxKUXoevCnCqB14A1V6btE10Beboi6e GlmtTK8poghfJk9b6skXDRfp06vwtn8eOCEGQJARLGIPMP1J1u96bzDauZCOYVyJ tCctiCAjdOTMG+1xdxrCTUHousKBdbb+gYPMhBHCJ4TGIDGXDBTRBfd2VHG3JIRV nLZyYL4pSLWnY7NFcqZU8/ZpqUDzMPf1betKf6zOJ1oXJpPAgznUyVeUTctAOHwq l+J1ntn1rPYD1nemrGWHyYjvLaRB3aCzklbl24tfQl0as5pAdZEBciYM3ufTsca8 KFxXyPy7E9t4qtTfus3Oaa1TpfJwCJZOvjpwubbBWbFAy1qZvX+DfQKK5oz7cfMt cRr2dWt9rXRgBStt7lnAPRwROdIsELBBQqPX8V3wAN+lVTPlzF+j03l1S6S2okM4 KwFsD37Q= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out003.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9Q_DPKzMwWr4 for ; Tue, 8 Dec 2020 21:07:28 +0100 (CET) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by ext-mx-out003.mykolab.com (Postfix) with ESMTPS id B902A4018E for ; Tue, 8 Dec 2020 21:07:28 +0100 (CET) Received: from ext-subm001.mykolab.com (unknown [10.9.6.1]) by int-mx001.mykolab.com (Postfix) with ESMTPS id 6F484412 for ; Tue, 8 Dec 2020 21:07:28 +0100 (CET) To: internals@lists.php.net References: <79044037-4cd4-4065-a3c1-39a4deea3e09@www.fastmail.com> <763bd813-88f4-4981-820d-a1e50e4c2e1e@www.fastmail.com> Message-ID: <7c014d0d-aa63-9827-2fcd-e62e274adbd8@alec.pl> Date: Tue, 8 Dec 2020 21:07:26 +0100 MIME-Version: 1.0 In-Reply-To: <763bd813-88f4-4981-820d-a1e50e4c2e1e@www.fastmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Enumerations From: alec@alec.pl (Aleksander Machniak) 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