Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114688 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 33152 invoked from network); 2 Jun 2021 07:28:05 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 Jun 2021 07:28:05 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8849A1804D8 for ; Wed, 2 Jun 2021 00:41:17 -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=-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-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (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, 2 Jun 2021 00:41:17 -0700 (PDT) Received: by mail-lj1-f179.google.com with SMTP id e11so1339951ljn.13 for ; Wed, 02 Jun 2021 00:41:16 -0700 (PDT) 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=+hxcXppl+J8roXptv9q8fL14Cffz7r4Fkzwo/ixJegc=; b=BfJG+xgmxgFsFry3sK6YNuqfpYatfsmMDdFOG6hj3QLkL8T0JtStVrSOBPTmLrT/Bv H1EFLM9ir2uASjS7i7y52nSQK1wF6lmKYkow+JFo+q2Wxwq/YfwMXxtn0EfbWf2sB09N k+NPMoU07QxfD0R6uqgk3NHEZuxMur8G8Luh6JXw9XYRTDBpRDLXjVAMFD1/W+Kn6Im2 RGsO/gz4V2KlIhEiOYuOhZvf7RFUbUmsezSGqqkGasupqwFIAYcRnz/Y9s5TBvuFDAY4 bs8n3hYlOeEPOv+9qxQ7rGL1s3w2SZdf2NcMmuUndXOv4X5085RM0AATs3N40KKdIb+C V4ag== 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=+hxcXppl+J8roXptv9q8fL14Cffz7r4Fkzwo/ixJegc=; b=GVrD5wou+X63Wu+WqkVoCqPfmkwQWvTaHWMeJ38c7qpLdyL4N93zCpjTxln1zVivt5 Csntaj32DUR3bmO7+xvqCzlpIgkrPSx+5t2d/rvd6ikSUu0LBNcjgqaAbreYaZXiZ4nj nlpoBYVyGjoQ2BcqdDfyv61XY7XABIlt2oT113EjCDgJ2sItEDmWo9Y2XSJgysnk/NM/ 0SlbLPLUbCgWpFQE9xmVK4OBFiNqj9c13FiAHwVYqwus9M91v6+chcSGF2+PQ5pqen3N fyuHxx7zzfRUcVjU7sllLVlRzN/VzVxb+pEp8h9uu0CUutxxp0f58QRn5QWl7P6NTTPm BiXg== X-Gm-Message-State: AOAM531V+bwtsvW0+6ZkEqcNq0tBB5Uc3NroIJfXo21S2VlcyIClH55z eselZPXIyXy5R8syrSRE/9BcuXGAkzkfi0LTjas= X-Google-Smtp-Source: ABdhPJwe1jCTbV+iYSlARjh7W6ajZP4g6Z8bf9Uto6egY+8MAJYwHCZwXZlWp3yxRtfclcvCplbRgCOHUZ2Hw1sU9C8= X-Received: by 2002:a2e:8502:: with SMTP id j2mr834547lji.29.1622619673944; Wed, 02 Jun 2021 00:41:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 2 Jun 2021 09:40:57 +0200 Message-ID: To: tyson andre Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary="0000000000004569e605c3c395fd" Subject: Re: [PHP-DEV] [VOTE] Allow static properties in enums From: nikita.ppv@gmail.com (Nikita Popov) --0000000000004569e605c3c395fd Content-Type: text/plain; charset="UTF-8" On Tue, Jun 1, 2021 at 3:25 PM tyson andre wrote: > Hi internals, > > I have opened the vote on > https://wiki.php.net/rfc/enum_allow_static_properties > Voting ends on June 15, 2021 > > Previous discussion can be found at https://externals.io/message/114494 > > Thanks, > Tyson > I'm neutral on this one. Not a fan of static properties, certainly not a fan of static properties on enums, but I do see the argument that the restriction is somewhat arbitrary from a technical perspective. I guess you can view the current baseline here in two ways: 1. Enums don't support properties, and we don't go out of our way to support static properties in particular, or 2. we prohibit static properties even though there is no technical reason to do so. Considered through (1.) the limitation is not arbitrary, just the result of a more general limitation that certainly *is* needed. Regards, Nikita --0000000000004569e605c3c395fd--