Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41700 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17242 invoked from network); 5 Nov 2008 22:46:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Nov 2008 22:46:56 -0000 Authentication-Results: pb1.pair.com header.from=sv_forums@fmethod.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=sv_forums@fmethod.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fmethod.com from 69.16.228.148 cause and error) X-PHP-List-Original-Sender: sv_forums@fmethod.com X-Host-Fingerprint: 69.16.228.148 unknown Linux 2.4/2.6 Received: from [69.16.228.148] ([69.16.228.148:46408] helo=host.fmethod.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3F/5A-22938-F5222194 for ; Wed, 05 Nov 2008 17:46:56 -0500 Received: from [83.228.56.37] (port=4648 helo=pc) by host.fmethod.com with esmtpa (Exim 4.69) (envelope-from ) id 1Kxr9I-0006nf-6B for internals@lists.php.net; Wed, 05 Nov 2008 16:46:52 -0600 Message-ID: To: References: <29.7A.15458.C4880194@pb1.pair.com> <5C.FA.15458.9A980194@pb1.pair.com> Date: Thu, 6 Nov 2008 00:46:40 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="ISO-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.fmethod.com X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - fmethod.com Subject: Re: [PHP-DEV] Re: Namespace Resolution From: sv_forums@fmethod.com ("Stan Vassilev | FM") > Here are some reasons why we felt that functions/constants should > fallback: > - most namespace users will be using classes and not functions This is a self-fulfilling prophecy, the more you open a gap between classes and functions, the more people will stick with the richer functionality since it's just too much hassle to bother with two different paradigms. Case in point: do you know a major reason why people keep using static methods to "fake" functions? It's not as much to namespace it. I mean Foo::bar() or Foo_bar(), who cares? It's all the same. But the big difference is, I don't have to explicitly load the function library if it's a static class. Classes have autoload, functions mysteriously don't. Hence, even I have abandoned using functions today and use fugly static method hacks. It's less hassle to do it wrong right now, than do it right. So I do it wrong. Namespaces won't change any of this, since I still can't autoload my function library. Regards, Stan Vassilev