Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54593 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29077 invoked from network); 14 Aug 2011 20:39:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Aug 2011 20:39:38 -0000 Authentication-Results: pb1.pair.com header.from=sebastian.krebs.berlin@googlemail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=sebastian.krebs.berlin@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.214.42 as permitted sender) X-PHP-List-Original-Sender: sebastian.krebs.berlin@googlemail.com X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:46383] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/A3-05730-982384E4 for ; Sun, 14 Aug 2011 16:39:38 -0400 Received: by bkd19 with SMTP id 19so2744771bkd.29 for ; Sun, 14 Aug 2011 13:39:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=k+IMbnpu1V4QdkTxM8A/tzzvj4LYHgxb1R5f54OTueQ=; b=v5vXyhsFnhzZb5gbz2vEeBUp98y33aSTxgt7P6p2bC4m2NATF9eYN+bqd12zzixB3t ujjz+5EAFIyKBOZqY4Pig0ggCLJBkBt3y7fb1s/A9ire2Ei4Ze0k3yJoqmka4SF8QcBT cFZHTS0mrOGGrFypV9SU99/+XgUXDIFQIibck= Received: by 10.204.200.194 with SMTP id ex2mr699155bkb.15.1313354374075; Sun, 14 Aug 2011 13:39:34 -0700 (PDT) Received: from [192.168.24.2] (91-64-205-130-dynip.superkabel.de [91.64.205.130]) by mx.google.com with ESMTPS id a3sm1358633bkd.35.2011.08.14.13.39.33 (version=SSLv3 cipher=OTHER); Sun, 14 Aug 2011 13:39:33 -0700 (PDT) Message-ID: <4E483284.4010100@googlemail.com> Date: Sun, 14 Aug 2011 22:39:32 +0200 Reply-To: sebastian.krebs.berlin@googlemail.com User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11 MIME-Version: 1.0 To: internals@lists.php.net References: <4E481136.3090508@sugarcrm.com> In-Reply-To: <4E481136.3090508@sugarcrm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Function autoloading through spl_autoload* From: sebastian.krebs.berlin@googlemail.com (Sebastian Krebs) Hi, Am 14.08.2011 20:17, schrieb Stas Malyshev: > Hi! > > On 8/14/11 7:02 AM, Nikita Popov wrote: >> 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. > > Why wouldn't you just use a class? Counterquestion: Why shouldn't I use functions? They exists, they are official supported, they are neither marked as deprecated, nor ever discussed to get removed at all. It feels a little bit weird to me, that I need to explain, why one wants to use functions, that are part of the language since ever. And (on the other hand) static methods are imo just something different. Regards, Sebastian