Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86475 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77115 invoked from network); 3 Jun 2015 08:45:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jun 2015 08:45:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=codekestrel@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=codekestrel@googlemail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.212.170 as permitted sender) X-PHP-List-Original-Sender: codekestrel@googlemail.com X-Host-Fingerprint: 209.85.212.170 mail-wi0-f170.google.com Received: from [209.85.212.170] ([209.85.212.170:37551] helo=mail-wi0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F8/E3-45124-B9EBE655 for ; Wed, 03 Jun 2015 04:45:16 -0400 Received: by wifw1 with SMTP id w1so12985019wif.0 for ; Wed, 03 Jun 2015 01:45:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-type; bh=XhGp/iHo3m0Gx96ZIvZ6v7HL9QlGiwVZg4mnz/p5TYc=; b=Hsr02RCNi294E/OmMHCAolhJ/xW4PmNAL4vY7/ykTw5WP0VARKRBB96G2xTS+kcmlu 9Vc4uw7DBLaS+2/vfSsjIhr07dQF+yzVCVodO9HmSJLO/C57LHbwmnyvRl+HGlFeYV3p dAm5Peg/wLJYZXQDeeld8CiI4MxieEQCC88lOd5s4VkGTJMWJrc4h1mGnI2hIidMIQrq UbQ9sdHgXhBypuAr/r+oEpu+NJd67BbZEVv+JspOiumFFkB5x0YU0bAnlcf4HI849362 AyXd25O5aLzbJtYvp/nJ7C88QL7f/Wur8jYzdO7keHx5ieVXQKdgECxPlsNn526A/IFG qdNg== X-Received: by 10.194.3.77 with SMTP id a13mr59491985wja.104.1433321113279; Wed, 03 Jun 2015 01:45:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 03 Jun 2015 08:45:02 +0000 Message-ID: To: Lorenzo Fontana Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=047d7b343918ce62370517991399 Subject: Re: [PHP-DEV] Migrating PHP classes to built in namespace From: codekestrel@googlemail.com (Dominic Grostate) --047d7b343918ce62370517991399 Content-Type: text/plain; charset=UTF-8 Yes, however for consistency, I personally like the idea of using a longer namespace over prefixed class names. The most relevant example being the SPL data structures. For instance SplStack might come under Php\Collection\Stack. As far as I can tell there is a fair amount of fear of adding new native classes in light of BC issues. But I have yet to see anyone claim the Php vendor namespace for themselves, so it might provide for future extensions. Dominic On Wed, 3 Jun 2015 09:35 Lorenzo Fontana wrote: > AFAIK the PHP namespace is the root one. > > Lorenzo > > 2015-06-03 10:33 GMT+02:00 Dominic Grostate : > >> Hi, >> >> I couldn't find any information on this elsewhere, or perhaps I didn't >> look >> hard enough. Its been bugging me a while though so I though I would ask. >> >> Has there been any discussion or consideration towards migrating or at >> least aliasing all built in classes to a Php vendor namespace? >> >> For aesthetics if nothing else. >> > > --047d7b343918ce62370517991399--