Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113198 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 26663 invoked from network); 17 Feb 2021 18:23:56 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Feb 2021 18:23:56 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 66295180088 for ; Wed, 17 Feb 2021 10:10:58 -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,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-io1-f53.google.com (mail-io1-f53.google.com [209.85.166.53]) (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 10:10:57 -0800 (PST) Received: by mail-io1-f53.google.com with SMTP id q7so14876060iob.0 for ; Wed, 17 Feb 2021 10:10:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benramsey.com; s=google; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=c8Zbbjv2NH7Vi6blq7H9GaDOwAEqmIdoIYJx6BUTka8=; b=YgDA3G/LO5cIdusbAKgw6MXYeWkgrttBWPXZaeyn9GhYCzTRhY6ADoIP9DyhxxiRg5 T5ausNqSnEJNVJHgiaabVwO7G+QR0QxGqMGndYUHNvZCnJ2CCUENoe4LivGBbVyjR86S 3QQlSKTBxqPCaO7ip9alwWAOdkerU36L4lV1+kNHYok5fDTWvlc3aMDX7gl40gPM9/T8 ViHJp2FPIWYjCtlaz8FNRH+pXZP9jeP1mgyj1z+fynGGMD0+PRGLJh/jJ/z+KGn1wWCQ tZQ9StYVmYy3g6kaSd4bit4GGQe/H3fWsuRG0VmDlPeVt7hohSmxUZrTGC2gDVZsv/4g ZUpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=c8Zbbjv2NH7Vi6blq7H9GaDOwAEqmIdoIYJx6BUTka8=; b=mEu6CdQzM2Jn2F2R4zei9TPuM0mbMY2N0CtxUMThNPTsD6/cFi4toPtBzgLBfz4NtE PM4KAX3vfPUD/s6jo90Tb/C/WxV8jn6/2fRWC5JEN0VJ9XuwqleHzkZUglYsY6OcASfa 4RpQMIXVp9oazK0xWoBBmm9Sf+vygZUlaPD90opnO+oEnp52EILMseE1MiTUBH86OnOB NyLQGi6zV+zHB5D/AAVJO6FJ2tWakCInTv4KqKf3Z2cCVXvWBVEyX1uMrZpai9LeEUMO gnH3k9A8MRGxghLyWIcWIiw6X0Or8eIoj4CEveBFz2qpmayvR5Lew2mxdRZbdR5YKioM cONg== X-Gm-Message-State: AOAM532QPqUAsaJHW1/Tn3szrn502XP00gtM5T8E/4aUdXfDk8qva7aT SG9gDki37tJvHwHOruXxmezzLw== X-Google-Smtp-Source: ABdhPJxbjq1x66Xe9oiB+cfwjktvze+mA+ldcqUun11aCZMyxoH9wlbq/xUjVXetCZ3Q21ewenW5Lw== X-Received: by 2002:a02:caad:: with SMTP id e13mr702624jap.12.1613585455543; Wed, 17 Feb 2021 10:10:55 -0800 (PST) Received: from [10.10.42.76] ([96.61.105.82]) by smtp.gmail.com with ESMTPSA id z24sm1799623iot.36.2021.02.17.10.10.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Feb 2021 10:10:54 -0800 (PST) Message-ID: Content-Type: multipart/signed; boundary="Apple-Mail=_573A4BD5-D63B-47E4-80E0-4CA066D430BC"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Date: Wed, 17 Feb 2021 12:10:53 -0600 In-Reply-To: <31ecea72-d0ff-8aec-530e-266c3a8558a7@gmail.com> Cc: internals@lists.php.net To: Rowan Tommins References: <488aad1e-6981-4dee-92f0-cd4128283162@www.fastmail.com> <6bfa34aa-e3e2-23f3-4b66-c051a259cd02@gmail.com> <43C6BC44-6A9F-4645-8307-31971ED8357D@benramsey.com> <31ecea72-d0ff-8aec-530e-266c3a8558a7@gmail.com> X-Mailer: Apple Mail (2.3608.120.23.2.4) Subject: Re: [PHP-DEV] [VOTE] Enumerations From: ben@benramsey.com (Ben Ramsey) --Apple-Mail=_573A4BD5-D63B-47E4-80E0-4CA066D430BC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Feb 17, 2021, at 12:08, Rowan Tommins = wrote: >=20 > On 17/02/2021 17:51, Ben Ramsey wrote: >>> On Feb 17, 2021, at 11:48, Chase Peeler = wrote: >>>=20 >>> 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 >> Others, please correct me if I=E2=80=99m wrong, but I believe each = enum case is already an object. >=20 >=20 > I think what Chase meant was that if we don't want to allow *all* = objects as keys, we could allow *a specific subset*, namely Enum cases. >=20 > The implementation would be similar, but deliberately limiting the = scope might avoid some undesirable edge cases and side effects. Sorry. When I read =E2=80=9Cwere to not pass,=E2=80=9D my brain missed = the =E2=80=9Cnot=E2=80=9D part. :-) Cheers, Ben --Apple-Mail=_573A4BD5-D63B-47E4-80E0-4CA066D430BC Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQToXQMR3fpbrPOmEOewLZeYnIwHGwUCYC1cLQAKCRCwLZeYnIwH GwuoAP0TF2AvVpl5i/zDQ+3j5GGxz3IJZazjmNXCvd2gABHtWgD+MNx9pz3yBczn ArinWb+uvYLj8vccp1QMyKSjDRiI1Qw= =nW+Z -----END PGP SIGNATURE----- --Apple-Mail=_573A4BD5-D63B-47E4-80E0-4CA066D430BC--