Re: Add support for ::class to constant()

From: Date: Wed, 10 Mar 2021 00:19:17 +0000
Subject: Re: Add support for ::class to constant()
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-113427@lists.php.net to get a copy of this message
Hi Kévin,

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


Thread (4 messages)

« previous php.internals (#113427) next »