Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113427 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 16082 invoked from network); 10 Mar 2021 00:27:23 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 Mar 2021 00:27:23 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 47E371804B4 for ; Tue, 9 Mar 2021 16:19:30 -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=-0.4 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, 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-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 ; Tue, 9 Mar 2021 16:19:29 -0800 (PST) Received: by mail-ej1-f47.google.com with SMTP id bm21so33313890ejb.4 for ; Tue, 09 Mar 2021 16:19:29 -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=hEgpkNh8Z9Y2dDAmYqOdbCDA/bUh1vVbiZdevKDWhVQ=; b=ErHG8u8M1ABcFxA4OB2ojFiec2KMScrpnjUc189xYLe9dT82g2xfoHCdGrt1mq47pn 1WWHvzitv1+mHqJDvdB59Do333N0N9Y4/KdAKq/2U7fVNRzqszxzpLNDZv3nF2Vz2zuh AsOX5cMMRmlWzCFdTCQzOVn+KVynMvdvinX/Gjarw4wtIikWcrriffzQNyNwZypQONi2 B7Gkcki0oiypLQBYXUaFiavF5+IzsDWUc2gDjPGvwsiYH/ADABcDwX3dff1UtmFcVn8Z z0syu0+gTcTCI4J1Qf1uuClV4p3Ff2J+y0MHy744pg20CceeH0IuhtorQWkb8hR8hyD7 UbqQ== 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=hEgpkNh8Z9Y2dDAmYqOdbCDA/bUh1vVbiZdevKDWhVQ=; b=RnTZqkpu+gEbZNcdV/f0K6p8KuzKsigPvyhCCvNr2kvjKR/LmLqxL6EJocCqazvCjV AjjHFHRg5Hsexp2OzaSqY4E6bghFu5itGVzOCJxf0CQeJUuqpS66/R5QIIU6F0d4WltK UG7w7RD9j2Wxd5R8ieGo1oCfP+2p+loapbR/gyAOdosOdl0EgFfBo4Q2w6nadWDNmaHj 3ZAsalSgXLzft1BFkxqHxW1StfWudjgIl583G1hAk91YGqVBTutiDotHMuRbWY9/yOz4 g3557hjJgUjq/1sP7xuX/5NsujOsTdu+qqxhDWQl8V/1Zw/2kZlDD/rkj8os8gSBEQDJ 0pjQ== X-Gm-Message-State: AOAM531uSagEUGqnHgOsMWFS1nLnQ91ccZXYRbcKiqeiHeDkRx5XK1GP ltS2cFPXSKJGGDXjT4pfgQMAGQznKbwAfQ+rofE= X-Google-Smtp-Source: ABdhPJx9PqWixXZrqGjHKyrjrT1k7YtmhaQVZZyEnolaWPH6pGUdtvlS6R/LIcWzvwhEMBsd6No0ro6wuOB9lT9tUzU= X-Received: by 2002:a17:906:d71:: with SMTP id s17mr714963ejh.126.1615335566875; Tue, 09 Mar 2021 16:19:26 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 10 Mar 2021 00:19:17 +0000 Message-ID: To: =?UTF-8?Q?K=C3=A9vin_Dunglas?= Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000a81e6305bd239e57" Subject: Re: [PHP-DEV] Add support for ::class to constant() From: tekiela246@gmail.com (Kamil Tekiela) --000000000000a81e6305bd239e57 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi K=C3=A9vin, My opinion is that you should write an RFC. I have to admit I was a little confused when I initially read your email, because I never considered ::class to be a constant. It is a special constant, which is described as a keyword in the manual. If I understand it correctly the value is obtained either at compile-time or at runtime. I would certainly want to see more explanation for your proposal with all edge cases listed out. Sounds interesting and I am looking forward to more information. Regards, Kamil --000000000000a81e6305bd239e57--