Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38635 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49530 invoked from network); 26 Jun 2008 09:17:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jun 2008 09:17:13 -0000 Authentication-Results: pb1.pair.com header.from=hartmut@mysql.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=hartmut@mysql.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mysql.com from 64.212.38.36 cause and error) X-PHP-List-Original-Sender: hartmut@mysql.com X-Host-Fingerprint: 64.212.38.36 mailgate-b.mysql.com Linux 2.6 Received: from [64.212.38.36] ([64.212.38.36:56259] helo=mailgate-b.mysql.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 97/16-13482-89E53684 for ; Thu, 26 Jun 2008 05:17:13 -0400 Received: from mail.mysql.com (mailsend.mysql.com [10.100.1.123]) by mailgate-b.mysql.com (8.13.8/8.13.8) with ESMTP id m5Q9GwTH002626 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 26 Jun 2008 11:16:59 +0200 Received: from [192.168.144.26] (port-92-193-107-108.dynamic.qsc.de [92.193.107.108]) (authenticated bits=0) by mail.mysql.com (8.13.3/8.13.3) with ESMTP id m5Q9Gr74014513 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 26 Jun 2008 11:16:54 +0200 Message-ID: <48635E85.3040401@mysql.com> Date: Thu, 26 Jun 2008 11:16:53 +0200 Organization: MySQL AB User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: RQuadling@googlemail.com CC: Derick Rethans , Rasmus Lerdorf , internals Mailing List References: <10845a340806260209g5d22c986tbd14b4234d079590@mail.gmail.com> In-Reply-To: <10845a340806260209g5d22c986tbd14b4234d079590@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] How bad would it be to say/enforce that namespacing can only apply to classes and not normal functions? From: hartmut@mysql.com (Hartmut Holzgraefe) Richard Quadling wrote: > How bad would it be to say that namespacing can only apply to classes and > not normal functions? i don't see namespacing as an OO only feature, IMHO it is a perfectly valid and useful thing for pure procedural code, too not having namespacing for procedural functions would leave the old ugly concept of bundling functions as static methods within dummy wrapper classes as only option for procedural name space emulation ... which AFAIR was one of the things we wanted to get rid of way back when the whole namespace idea first materialized? -- Hartmut Holzgraefe, MySQL Regional Support Manager EMEA Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten Amtsgericht Muenchen: HRB161028 Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer Vorsitzender des Aufsichtsrates: Martin Haering