Re: Proposal for RFC: get_class_constants()

From: Date: Sat, 14 Dec 2013 13:33:13 +0000
Subject: Re: Proposal for RFC: get_class_constants()
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-70636@lists.php.net to get a copy of this message
Andrea Faulds wrote:
Currently the same behavious is only possible by the help of reflection, which due to the nature of reflection takes a bit more work/cpu-cycles.
Unless you're doing this a billion times a second, I can't see why the number of cpu cycles for this would matter. And why duplicate functionality needlessly, in that case? What's so bad about the current Reflection way of doing it, except for performance? I can't see this proposal really being that useful or going anywhere.
If it is the only reason you are having to activate reflections? Reflections would seem to have a place, but is it really necessary to add yet another layer when most of the time it's function is provided better by IDE tools anyway? This is a simple example of a current hole in the core PHP tools which would help a section of developers who don't need the overheads of additional layers. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

Thread (14 messages)

« previous php.internals (#70636) next »