Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113195 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 22128 invoked from network); 17 Feb 2021 18:01:52 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Feb 2021 18:01:52 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7AA3C1804E2 for ; Wed, 17 Feb 2021 09:48:54 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-vk1-f180.google.com (mail-vk1-f180.google.com [209.85.221.180]) (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 ; Wed, 17 Feb 2021 09:48:53 -0800 (PST) Received: by mail-vk1-f180.google.com with SMTP id n125so547469vkf.7 for ; Wed, 17 Feb 2021 09:48:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=O4OFDIMeqyd+3v8SCj/alHgrZgcsFFroPSJDVZk+Oy0=; b=CSosFUDODTTGclJ21Uo1oOKJz3KSfUVNy4hncIPNFUs5yz2TgAuZwcughQ2qcxnu3Q o1h3mjKBzxYjcWFuXNZYAwlSXfSX2F5TqxZe25hAma+JgX9VziWCg+AM69Y4jk/bsULa wYlvC2Slpgswq5YOiGg2BXApL6YuUoZPf//8KkqgGnTOzJQkNdKt5MYZbi1ICAdiAt5/ jv/qPkelLLYVtPdelvZAbkfM4whv/dyOnW4e7ZGqpGaWGqcMaGkuXzNn8Kr+lEHX1t6H 0f7HiBysd6wHK3cFNTbAc7/TGBWW6x6YEnS9bGx6QeD0m/1c6FqeVObcUdEQLeYohT7t S44A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=O4OFDIMeqyd+3v8SCj/alHgrZgcsFFroPSJDVZk+Oy0=; b=qTA+Ut8tf2ISmL1yCkVH8JCEvmlRu5y3SUy2DiCkbj7qgJn6BvIx5hk/SG5jeJZ/9W xuouZm+H1jTLjbnBd7SQTKqLphrxNNkhKftM+kH8enk85KnI0vORLRakEhC4voRp7LHz NDl8msBW8mKm/gGt2M9/34vk/wK/4ZFUAGL4iQQXeG+G8UKyZYmc2UQHEElIqpSVtSlZ 6cz2k9h8ye1yXj+gQ0nwYV74jeSAAbcYSzfxQdIEAuHKc4BC2MxPNsub3a/A6BsSQ7Fy tmiOg1N6DFIPAN9kUlyfEWVddbEgwuDMNwUOqc98AZj26c4diy41v0Wy+qMcCC4zfq4d nhTw== X-Gm-Message-State: AOAM533m/YgkXPXQRU0egShPO0G4uUmxHFJZDsgFkqKA2F64sukxUiTK fCObaE42z2KhvUcDK/PcfFexZc1KVZ6/gqUhIhM= X-Google-Smtp-Source: ABdhPJzQI9qcaoMM3YdSpsQ7zhm0s1bpd9cz2sUjUEouLocURJ9iafGLvHQB14rysZL2Ejw9MBWQPVSCfXHuRRwgkSc= X-Received: by 2002:a1f:180c:: with SMTP id 12mr529175vky.24.1613584130455; Wed, 17 Feb 2021 09:48:50 -0800 (PST) MIME-Version: 1.0 References: <488aad1e-6981-4dee-92f0-cd4128283162@www.fastmail.com> <6bfa34aa-e3e2-23f3-4b66-c051a259cd02@gmail.com> In-Reply-To: Date: Wed, 17 Feb 2021 12:48:38 -0500 Message-ID: To: Ben Ramsey Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000e93cb105bb8bd483" Subject: Re: [PHP-DEV] [VOTE] Enumerations From: chasepeeler@gmail.com (Chase Peeler) --000000000000e93cb105bb8bd483 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Feb 17, 2021 at 12:41 PM Ben Ramsey wrote: > > On Feb 17, 2021, at 09:26, Chase Peeler wrote: > > > > On Wed, Feb 17, 2021 at 10:09 AM Rowan Tommins > > wrote: > > > >> On 17/02/2021 14:30, Larry Garfield wrote: > >>> The Enum RFC has been approved. > >> > >> > >> Thank you and Ilija so much for putting in the effort to make such a > >> carefully thought-through proposal, and I'm really looking forward to > >> being able to use it. > >> > >> I realise not everyone agrees with the approach, but am hopeful that i= t > >> can be expanded on in future proposals to add a lot of power to the > >> language. > >> > >> > > Glad to see this passed. I definitely would have voted for it if I had = a > > vote. The only thing I wish had been included was the ability to use th= em > > as array keys, but definitely don't think the lack of that would be a > > reason to vote against it - especially since the possibility is still > open > > in the future and adding it wouldn't cause any BC issues. > > > There=E2=80=99s an RFC for that. ;-) > > https://wiki.php.net/rfc/object_keys_in_arrays > > Cheers, > Ben > > If that were to not pass, though, it seems supporting enum cases as keys would be worth exploring. Fully support allowing all objects as keys though= . --=20 Chase Peeler chasepeeler@gmail.com --000000000000e93cb105bb8bd483--