Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54583 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83194 invoked from network); 14 Aug 2011 14:02:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Aug 2011 14:02:41 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@googlemail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@googlemail.com X-Host-Fingerprint: 209.85.215.42 mail-ew0-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:56836] helo=mail-ew0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F0/55-50938-E75D74E4 for ; Sun, 14 Aug 2011 10:02:40 -0400 Received: by ewy2 with SMTP id 2so1672378ewy.29 for ; Sun, 14 Aug 2011 07:02:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=EnbHY8IJSpIYBkvSY99dAaESgosUuFXtQBt2AoX0fZk=; b=kry/dGroKJH+i4zqeuaXSySunsgjrNm7I/3+JwJIu+F9Qk3YOeappgSTR8h+LUGTCJ ySrKl9UjBJ759apyg15Dz5+EtkhUStp8CJUzMQ90fcd5kjwXpRA53Wo0fFwZvfIlwUTB 2U/qSzez2e9ZICzdsnC2Z3DCp2W63rSmi3rTk= MIME-Version: 1.0 Received: by 10.14.145.142 with SMTP id p14mr383544eej.108.1313330555340; Sun, 14 Aug 2011 07:02:35 -0700 (PDT) Received: by 10.14.95.3 with HTTP; Sun, 14 Aug 2011 07:02:35 -0700 (PDT) In-Reply-To: References: Date: Sun, 14 Aug 2011 16:02:35 +0200 Message-ID: To: Derick Rethans Cc: PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [RFC] Function autoloading through spl_autoload* From: nikita.ppv@googlemail.com (Nikita Popov) On Sun, Aug 14, 2011 at 3:55 PM, Derick Rethans wrote: > I understand the proposal, but I don't see any compelling reasons in the > RFC of why we actually need autoloading for functions? For classes it > makes sense because there is almost always a class to file mapping. For > functions (and constants) that is not the case, so I am wondering how > useful this function autoloading actually is. As Sebastian already mentioned, if all functions in a namespace are grouped into one file, it would be simple to load that file using such a concept.