Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69245 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34083 invoked from network); 20 Sep 2013 07:47:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Sep 2013 07:47:43 -0000 Authentication-Results: pb1.pair.com header.from=linepogl@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=linepogl@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.182 as permitted sender) X-PHP-List-Original-Sender: linepogl@gmail.com X-Host-Fingerprint: 209.85.192.182 mail-pd0-f182.google.com Received: from [209.85.192.182] ([209.85.192.182:64762] helo=mail-pd0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F5/50-31578-D9DFB325 for ; Fri, 20 Sep 2013 03:47:42 -0400 Received: by mail-pd0-f182.google.com with SMTP id r10so84797pdi.41 for ; Fri, 20 Sep 2013 00:47:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=VN0GWYl6kywz/WEz+rzp6SSxaEwG8mf+Ic2JAMXDlFI=; b=0kgtsP2ie4AhIehXlGD6hATanI4KASc4/Hjh2+X54L20O2p1x37O396AKHNukE7TPU TLLkaj/C5jb00CjDzu2Ye8vUmQkjGmDQ88moRejAkEoxNrHW4Dq0U6s4u9DcewLmyvtp QeRrPjoJjCW2gmnaRlCY4FETEFn9tAi7JQCsBZAtMH1WR4Ko1g0vsaqjyljLpDYRhkm9 mfU8qRRJIUjotRAHm+JyhkAriNfyRYBKElouZZnvcJBmP3p3PlAwxdUHUzFbpxe2Zkne dRX2dV9lCwstwxuE5NG4pd84Qy94BQ2vrkkwxLIqPDKca53PJM0TsEsm9jO+bG2lZ//j xqqw== X-Received: by 10.68.225.99 with SMTP id rj3mr6500000pbc.122.1379663258821; Fri, 20 Sep 2013 00:47:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.70.3.163 with HTTP; Fri, 20 Sep 2013 00:47:18 -0700 (PDT) In-Reply-To: References: Date: Fri, 20 Sep 2013 09:47:18 +0200 Message-ID: To: kuzuha Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=e89a8ff246c573aae604e6cbe25f Subject: Re: [PHP-DEV] PROPOSAL: new class entry for grouping functions, consts and vars From: linepogl@gmail.com (Lazare Inepologlou) --e89a8ff246c573aae604e6cbe25f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2013/9/20 kuzuha > 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. > > This is nothing else than a "static class" of C#, which does nothing but enforcing self-discipline. We can already do all these stuff with a standard PHP class. Besides, a standard PHP class offers Late Static Binding, which gives a very nice mechanism to expand a library. How does your "definition" block provide anything similar? Lazare INEPOLOGLOU Ing=C3=A9nieur Logiciel --e89a8ff246c573aae604e6cbe25f--