Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117826 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 72468 invoked from network); 29 May 2022 15:12:30 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 May 2022 15:12:30 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B560D180211 for ; Sun, 29 May 2022 09:55:59 -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.2 required=5.0 tests=BAYES_20,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-vs1-f41.google.com (mail-vs1-f41.google.com [209.85.217.41]) (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 ; Sun, 29 May 2022 09:55:56 -0700 (PDT) Received: by mail-vs1-f41.google.com with SMTP id j7so8745789vsj.7 for ; Sun, 29 May 2022 09:55:56 -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=rxiXkB0rEYAwkL6j2BpM3q2yWbdVq/v+x2Z4m2FsE74=; b=FDUkQrCg4c+oD0WcXdia1TKbS6XVqQwnAeQKweWKuDsk0N1IZZGobI85/CPDjJTB6i bAjC9gcc5SuQAs0sSJ7Z0ion9crNL3/Tjc/g/mpUrRYYM7BWsXgnYi9OFWGHMpR8zWgQ PSEkeCoaSZiaMW0v0ewVwpFzBx2Jvg45JATwiS+wmRhLKH0O4JF+rSF0Z2FyYb43o2yb CsYghmF77t7oo7lwj5oD9mJDdsmr/r/owYjczh05BGs+096yApFTdKvbLewRJKvZgP3U 4L41uUxWDtL3GCiEv58ouWZGMYmkBjcJtehGBsaFYn7XXpnS9plM3kjSXxrNahGFztiK 9y0Q== 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=rxiXkB0rEYAwkL6j2BpM3q2yWbdVq/v+x2Z4m2FsE74=; b=aBqJHePaVyjpoNd90QUy+bevoZDBwUE/ctOz5zKKhxQcN5mPxFJY32Sgoh/9w3WcQt p9QJcJEebdAWB5P6hU4e59+cyFitWwG6QyBsk1+8tSHPT/OLGeYD7SIIh4C5TLVgsg5S TCu/ndaxjJdZAi1nareDCf99pmTSL9lAkoMPpRLLS44EkX/5meaa9MmEGUrWvQazt4cM ix8U5IND4wXGSfDBJiTM/sYAeTyNLuGIWQzq6h/k/M5fdHy48i+IAn2QcLH190320Is+ +DzwP4RKq+PZyQh2X+/UaS7wZc5wC9OMsAUzBRxJcIdfM0Bv+A9rh+djGs1x5xI9zYIW 0QoQ== X-Gm-Message-State: AOAM532ARE/tLpWLa5pD4RWB3Sl3jtwNHWHSdMzsJeMkWgqT1rl+CK06 ELzw81V8+urgN8rMHA5xuC7NwpmLVyywI9bxSZU= X-Google-Smtp-Source: ABdhPJz7eb2RmBMVRui5Z5LXUsTT8Spitqu5XFqgsFmMJDvXJvrA75euaTP6w0ktPYGiECU9aGlZVQlJ/oDBWjLoqQE= X-Received: by 2002:a67:c981:0:b0:320:92c2:d2ee with SMTP id y1-20020a67c981000000b0032092c2d2eemr19142215vsk.79.1653843355111; Sun, 29 May 2022 09:55:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 29 May 2022 18:55:44 +0200 Message-ID: To: Larry Garfield Cc: php internals Content-Type: multipart/alternative; boundary="000000000000b2152705e0296982" Subject: Re: [PHP-DEV] [RFC][Under discussion] Fetch properties in const expressions From: michal.brzuchalski@gmail.com (=?UTF-8?Q?Micha=C5=82_Marcin_Brzuchalski?=) --000000000000b2152705e0296982 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable niedz., 29 maj 2022 o 18:24 Larry Garfield napisa=C5=82(a): > On Sat, May 28, 2022, at 4:44 AM, Ilija Tovilo wrote: > > Hi everyone > > > > I'd like to start a discussion on a simple RFC to allow fetching > > properties in constant expressions. > > https://wiki.php.net/rfc/fetch_property_in_const_expressions > > > > The RFC proposes adding support for fetching properties in constant > > expressions using the -> operator. I'm looking forward to your > > feedback. > > > > Regards, > > Ilija > > The enum-in-attribute use case came up recently in Symfony. I'm in favor > and the RFC looks good to me. > Personally, I'd start the discussion on https://wiki.php.net/rfc/object_keys_in_arrays instead as this might solve the need for fetching property in constant expressions. Cheers, Micha=C5=82 Marcin Brzuchalski --000000000000b2152705e0296982--