Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113053 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 37401 invoked from network); 2 Feb 2021 19:44:22 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 Feb 2021 19:44:22 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CE6751804B1 for ; Tue, 2 Feb 2021 11:27:39 -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=-1.2 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 2 Feb 2021 11:27:39 -0800 (PST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 5182D5C0353 for ; Tue, 2 Feb 2021 14:27:38 -0500 (EST) Received: from imap8 ([10.202.2.58]) by compute4.internal (MEProxy); Tue, 02 Feb 2021 14:27:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=MJhski +F+a2Ha4/h2V4HM3WU4/V191uIGlfMfLtcvFY=; b=FVoDNpxpSYaBjjJ/75hp3w dELPmrxuEo6dPIB0ADUayVRxJ2d4abevNzTXcHIoR1EnMgDEvQOgRXUVkIDWNvlu nJpKliXEkvekJPQTHFmD7j+76ieX+jV9GO98li0GuBdu+6sxQffAxouzuy+EQDcK +Q7K+XmZvWTELmWf4Z4SMhBoGDiS2oka4oEkZLeCD3QWSI7LQ/qnQ54+g9jtavSU sr8GQte9arFUYX47Dzp1IN9lqjYshhL5kEu9WmjgMRAY4MKLNebU/GqDsQY+ubEc xcY/LX9Kq7v6SKvqhtzPda1RLjq7PG87jgOwhKl1yqJ+DXfu7JG20FOAeKBxQ1hw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrgedtgdduvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfnrghr rhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtoh hmqeenucggtffrrghtthgvrhhnpeevheehvdevjeelvdevgfelvefftdejkeelvdekgeeh fffgiedvjefhhfeltdduteenucffohhmrghinhepphhhphdrnhgvthenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhi vghlughtvggthhdrtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id ACFBF3A0074; Tue, 2 Feb 2021 14:27:37 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-93-gef6c4048e6-fm-20210128.002-gef6c4048 Mime-Version: 1.0 Message-ID: In-Reply-To: References: Date: Tue, 02 Feb 2021 13:27:16 -0600 To: "php internals" Content-Type: text/plain Subject: Re: [PHP-DEV] Re: [RFC] Enumerations, Round 2 From: larry@garfieldtech.com ("Larry Garfield") On Fri, Jan 29, 2021, at 11:15 AM, Larry Garfield wrote: > And we're back again. The RFC has been updated with a steady stream of > smaller improvements based on feedback and testing, and is now in its > Final Form(tm) (we think). The only major change worth noting is that > we renamed things. :-) > > An enum with no scalar backing is now called a Pure Enum, made up of > Pure Cases. One that does have backing values is called a Backed Enum, > made up of Backed Cases. That change is mainly to allow for future > expansion to non-scalar backing static values, should the use case > arise. Reflection was also reworked a bit to make it more logical. > > https://wiki.php.net/rfc/enumerations > > At this point, Ilija and I consider the RFC done and ready for a vote. > Baring any major issues being brought up, we plan to start the vote in > the first half of next week, probably Tuesday-ish. If you have any > other bug reports or tweaks, please speak now or forever hold your > patches. > > --Larry Garfield Based on feedback from Nikita we've made three last changes to Naming Things(tm). 1) IterableEnum is back to "UnitEnum", which is the superset of Pure enums and Backed enums. 2) The reflection classes were renamed accordingly. 3) We clarified that tryFrom() will behave "as you'd expect" if passed an incorrect type, given strong vs weak mode. And a few other inconsequential word tightenings. Baring any other revelations, voting starts tomorrow. --Larry Garfield