Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69243 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28778 invoked from network); 20 Sep 2013 07:13:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Sep 2013 07:13:56 -0000 Authentication-Results: pb1.pair.com header.from=garoevans@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=garoevans@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.182 as permitted sender) X-PHP-List-Original-Sender: garoevans@gmail.com X-Host-Fingerprint: 209.85.217.182 mail-lb0-f182.google.com Received: from [209.85.217.182] ([209.85.217.182:55681] helo=mail-lb0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 36/07-20998-3B5FB325 for ; Fri, 20 Sep 2013 03:13:56 -0400 Received: by mail-lb0-f182.google.com with SMTP id c11so269648lbj.13 for ; Fri, 20 Sep 2013 00:13:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=shzXYI2/a7Jw1KZNBwdB/FjolBOY1LB60ZhYu+pyFJw=; b=PZEBxAWUV8eJcp8eTSujlYlJPaYxNSWrQdbTv9QCJmZClz2NdYrLazmW/ApuYSxEL2 LIvPI1ZSewzZAnjm19wWd6Pe/fH3ZXq56z1/NqY3cTSnXfQE94p4yYXPwd+SbAs1xG2f Z0R/JHXrj62kSd+DBaPfjEz4Eve3W6zKHSlEguTv/bdRhJ1d/u5NhtGireTGUi8MKMVL dP/Y8zeWvvAv7RGRy50FpZHiGHpxgQ0Bqyu6G4PVFKSv0iaFdAdfQtvFmc3DUQD7S2ck P5CYiLSAaXRB7qTBmB2701HJVleBN3mkSmAVYLwIkmADywo7EE2dRC7y8nH4JfZql8KJ G0bw== MIME-Version: 1.0 X-Received: by 10.112.60.104 with SMTP id g8mr978524lbr.32.1379661232566; Fri, 20 Sep 2013 00:13:52 -0700 (PDT) Received: by 10.112.209.4 with HTTP; Fri, 20 Sep 2013 00:13:52 -0700 (PDT) In-Reply-To: References: Date: Fri, 20 Sep 2013 08:13:52 +0100 Message-ID: To: kuzuha Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] PROPOSAL: new class entry for grouping functions, consts and vars From: garoevans@gmail.com (Gareth Evans) On 20 September 2013 07:13, kuzuha wrote: > 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. Can you not just have a class defined final and use that? > 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. So, I'm sure the following meets the criteria of all of most of the tests in your example;