Re: Add get_object_constants and get_class_constants

From: Date: Wed, 27 Feb 2013 18:19:33 +0000
Subject: Re: Add get_object_constants and get_class_constants
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Wed, Feb 27, 2013 at 7:12 PM, Crypto Compress <
[email protected]> wrote:

> "Get rid of ~10% of all reflection usecases with only one function."
>
> This is really an exorbitant shiny argument on its own. Simple too good to
> be true. What am i missing? :)
>

You're missing: Why the heck do we want to get rid of Reflection? It's not
like Reflection was added just for fun. It was added to be actually used.
There is no need to replace (new ReflectionClass($class))->getConstants()
with get_class_constants($class). Do we want to alias *all* Reflection
methods in this way? Imho this is just absurd.

Nikita


Thread (16 messages)

« previous php.internals (#66286) next »