Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66286 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25114 invoked from network); 27 Feb 2013 18:19:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2013 18:19:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.54 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.219.54 mail-oa0-f54.google.com Received: from [209.85.219.54] ([209.85.219.54:35273] helo=mail-oa0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 32/54-33355-83E4E215 for ; Wed, 27 Feb 2013 13:19:36 -0500 Received: by mail-oa0-f54.google.com with SMTP id n12so1809356oag.27 for ; Wed, 27 Feb 2013 10:19:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=FVirO5UQhVHHUo7wppLJst8gwUxNJDL4Or67PUMADKI=; b=AdwnTWh+A9i+m+AG1N1/fcHSzskfIzexBiA+8lYsN6S7L20q6AYvVkFetuWbec/Yd9 cdwsEhQplfmiKiCW4Bhr/gHMKsI18kjD7eKiyQYGT5KpT8jqcPikak2PjJABEF+AbeHj ipi6T6qJJ8OU2vaDpBcXt+SDAuOAUV4ARIyd8H0X8i8+vMew7SDFaKOBV6EYfMdsOqv7 MPdIFLUtbLKQNKtNDGBLpxJCZCneHnbs0/b+FY601e+re/F61sckVKi9nIMa6LBIM+44 8N2+rui1Kqz1gDSoKDdvj/2JIkBwYOWLO82a8PwAX8jRUdQvUSeTCOu+y+KyIUBh3GnJ Mmuw== MIME-Version: 1.0 X-Received: by 10.60.170.44 with SMTP id aj12mr3121768oec.42.1361989173999; Wed, 27 Feb 2013 10:19:33 -0800 (PST) Received: by 10.182.49.136 with HTTP; Wed, 27 Feb 2013 10:19:33 -0800 (PST) In-Reply-To: <512E4C98.1080502@googlemail.com> References: <512DB820.6060908@sugarcrm.com> <512E1E1B.6020007@googlemail.com> <512E2278.3070406@2e-systems.com> <512E3DAD.90505@googlemail.com> <512E4521.4030909@googlemail.com> <512E4C98.1080502@googlemail.com> Date: Wed, 27 Feb 2013 19:19:33 +0100 Message-ID: To: Crypto Compress Cc: PHP Developers Mailing List Content-Type: multipart/alternative; boundary=bcaec54d475ce77e4004d6b8d03a Subject: Re: [PHP-DEV] Add get_object_constants and get_class_constants From: nikita.ppv@gmail.com (Nikita Popov) --bcaec54d475ce77e4004d6b8d03a Content-Type: text/plain; charset=ISO-8859-1 On Wed, Feb 27, 2013 at 7:12 PM, Crypto Compress < cryptocompress@googlemail.com> 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 --bcaec54d475ce77e4004d6b8d03a--