Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69242 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24644 invoked from network); 20 Sep 2013 06:13:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Sep 2013 06:13:58 -0000 Authentication-Results: pb1.pair.com header.from=kuzuha01@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kuzuha01@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.193 as permitted sender) X-PHP-List-Original-Sender: kuzuha01@gmail.com X-Host-Fingerprint: 74.125.82.193 mail-we0-f193.google.com Received: from [74.125.82.193] ([74.125.82.193:56672] helo=mail-we0-f193.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 73/86-20998-3A7EB325 for ; Fri, 20 Sep 2013 02:13:56 -0400 Received: by mail-we0-f193.google.com with SMTP id t60so904wes.0 for ; Thu, 19 Sep 2013 23:13:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=GZx6xhkaEQ7d7CCqqqq2T1s6N+PxDKEmGqvxcZet2dw=; b=mkF3PKrDkb1a4G3tdgUozb0PlXlX1jLRKn9xMg1Q8o9WqUWEsQJI+eMWGX3cEMqs4r IbYKFGht16LzvmFfyRBARzlfemfE6lVdjTEi/qWUWuJ65m5ANGuBOJsfLOlkn98WysWw YJXUpL5UmUyEcGrsfECGkps3FeLGWiDe4OhF0VBXMS2rupaZvdAuD+Xz1RTUBpfP+HtM PkEioiz8bIolzCRfh9lYM/JmShLkzVsr/SRGU2DGrnosQxZYQXLGLRlxR4yHiaqYpME3 b7xgM2Pz8qnpUztmpFCqKaR/Y7WdWkFVXI5AoyNyTUNfaok+FKlyE5+RhTYU1NGpbzh8 kR2Q== MIME-Version: 1.0 X-Received: by 10.180.210.231 with SMTP id mx7mr1352414wic.5.1379657630966; Thu, 19 Sep 2013 23:13:50 -0700 (PDT) Received: by 10.216.87.17 with HTTP; Thu, 19 Sep 2013 23:13:50 -0700 (PDT) Date: Fri, 20 Sep 2013 15:13:50 +0900 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=001a11c25d32016ac704e6ca9375 Subject: PROPOSAL: new class entry for grouping functions, consts and vars From: kuzuha01@gmail.com (kuzuha) --001a11c25d32016ac704e6ca9375 Content-Type: text/plain; charset=ISO-8859-1 Hi, I wrote a *rough* patch to add new class entry "definition" for grouping functions, consts and vars. https://github.com/kuzuha/php-src/compare/feature;definition As you know, defining a lot of constants makes php slower. I think autoload is very nice solution to avoid that problem. Autoloading skips unnecessary code and makes php faster. The "definition" block means Grouped defines. That gives autoloading to function, consts and vars. And PSR-0 helps simplify directory tree. Pros: * Never mind where to put .php file for definitions. Following PSR-0 is nice idea. * Can refactoring definitions without hesitation. * Separate implementation from definition specifically. Cons: * Big impact to language. How do you think about this? I hope I'll get your feedback. Best regards, Kuzuha SHINODA --001a11c25d32016ac704e6ca9375--