Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118210 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 10726 invoked from network); 6 Jul 2022 13:14:00 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Jul 2022 13:14:00 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 685F5180506 for ; Wed, 6 Jul 2022 08:07:02 -0700 (PDT) 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.7 required=5.0 tests=BAYES_05,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, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 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 (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 6 Jul 2022 08:07:01 -0700 (PDT) Received: by mail-vk1-f180.google.com with SMTP id 18so2043502vkz.2 for ; Wed, 06 Jul 2022 08:07:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wHGirCe16XnKrt/Sdm1G9QVcSESUR9jh7v/Z/YxBJR8=; b=a2TGrXjK7gcDMwZfB+sIujS//cMnl3J4JtXG+JfjCcmDYRjUBXImCT5LwZnaughD2/ Iz2BQUETowwcpniDa43QMFQm0DzEfeE9dtQoyQ/FXwMjRMFxKVEDQP/J5ias9mueRVk0 zJcxA/QQfLilh8cvG17fFShNSbiqAGRdwGq2oNQsKsn3CEzLMQjuGMtnDUZu1tUI9sGn 8kMEH0SBKNAymawI/5TWx8CM+GFt0B5qNEnp6VfI7zhXh3goTd/i0/MT1gEDfpsaEe0K THE6L+p/EgtZsoHFw1F9EsOKDI6cvz/zqgOQYdn3AoIxbowwpzHsU+37N2RAT18xEQt6 diPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wHGirCe16XnKrt/Sdm1G9QVcSESUR9jh7v/Z/YxBJR8=; b=yvm+noB4SNe32MjKUBtGIm9/SNVjQ4+Qfl6eHmaG3sBS4tXl7GkeeQQM52TipUXrKb f511b/ESuBXVpPSmTQX3AAikBMUprO+iysleZvz9XQU6RUlo50RSV1aCPpu1rSmtAwRY kBpzeneESzCruc9TeYUGHQ67xdNAbBTNj7PpxDIe3HvMVJWm7wSATZj+tXAXFyzDpkPa BqB/z5F1EIYhkiHvyhwl4c/h9sCLCvqUaqnMUGEPRY1r0bcS5GH4Rbn27clfrS+RRkyt PY+n83d0Vrznc4NM0rO9+XP85MTpry1ZB4PXmI0xc1bbSH84+zgEUKdkHR8AYrbGWDCk S3sQ== X-Gm-Message-State: AJIora9wmZqhsiYVYKYtfYNRWonitB61ueNvziEkEHbNkaTopaHuebut uLbDjXd4/jRns9DmwBnwghY7ad8x1X7fQXE2k+g= X-Google-Smtp-Source: AGRyM1uUjQdjkvPvRj5ZK1gziwsfQTMH+szHUz2GkvSXUwXT+3FwTGNFVue+usyhoBJKOige+Au61/fu/aWow0fJ0Ww= X-Received: by 2002:a1f:300c:0:b0:36f:eb7d:746f with SMTP id w12-20020a1f300c000000b0036feb7d746fmr22832251vkw.27.1657120019381; Wed, 06 Jul 2022 08:06:59 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 6 Jul 2022 17:06:48 +0200 Message-ID: To: Ilija Tovilo Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000001b26fe05e32452d6" Subject: Re: [PHP-DEV] [RFC][Voting] Fetch properties of enums in const expressions From: michal.brzuchalski@gmail.com (=?UTF-8?Q?Micha=C5=82_Marcin_Brzuchalski?=) --0000000000001b26fe05e32452d6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Ilija, pt., 1 lip 2022 o 15:03 Ilija Tovilo napisa=C5=82(= a): > Hi everyone > > I opened voting for the "Fetch properties of enums in const expressions" > RFC. > https://wiki.php.net/rfc/fetch_property_in_const_expressions I voted NO because the originating problem this RFC tries to solve described in https://github.com/php/php-src/issues/8344 is easily solvable by aither 1. introducing a simple constant string value used in both places the enum case and as an attribute value, 2. changing the attribute argument to enum instead. Personally, I'd see using enums as array keys feature first instead (which the RFC reminds in its introductory section as not possible yet) before we start improving places around enums. Best regards, Micha=C5=82 Marcin Brzuchalski --0000000000001b26fe05e32452d6--