Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53891 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45894 invoked from network); 11 Jul 2011 20:21:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jul 2011 20:21:16 -0000 Authentication-Results: pb1.pair.com header.from=patrick.allaert@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=patrick.allaert@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.42 as permitted sender) X-PHP-List-Original-Sender: patrick.allaert@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:53804] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C4/C6-30857-B3B5B1E4 for ; Mon, 11 Jul 2011 16:21:16 -0400 Received: by bwa19 with SMTP id 19so1187889bwa.29 for ; Mon, 11 Jul 2011 13:21:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Jgic0SlsUiR+i6Tm1+Nbr73qeLbti7SymeN9W2rzLds=; b=EyQflFpWrelHiVEQgywWbAbuu1bqSCjPl7TvbTsh2r6s3fSmxXeI6xABrb1hyxEyFX RiJLHJmNgi8IZNDeEWbMNcTCZoeW6CXHoPWY3uChUlHZrShf9DKhwQdOVPY9VplIixxP LQf2n2zu7+vFbRR860Bg+3w1SF1IUOwNjLEdc= MIME-Version: 1.0 Received: by 10.204.128.194 with SMTP id l2mr1816130bks.311.1310415671902; Mon, 11 Jul 2011 13:21:11 -0700 (PDT) Sender: patrick.allaert@gmail.com Received: by 10.204.40.1 with HTTP; Mon, 11 Jul 2011 13:21:11 -0700 (PDT) In-Reply-To: References: <4E1A012F.3030703@sugarcrm.com> <25.72.09103.BF11B1E4@pb1.pair.com> Date: Mon, 11 Jul 2011 22:21:11 +0200 X-Google-Sender-Auth: T0WUYufUyDKn45r96ojVf2OyZ7E Message-ID: To: Ferenc Kovacs Cc: "Matthew Weier O'Phinney" , internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: Make primitive type names reserved words (Was: Re: [PHP-DEV] [RFC] 5.4 features for vote (long)) From: patrickallaert@php.net (Patrick ALLAERT) 2011/7/11 Ferenc Kovacs : > On Mon, Jul 11, 2011 at 5:08 PM, Matthew Weier O'Phinney [snip] >> I think that's a bad idea. The point of namespaces is to allow us to >> override classes (and functions, and constants) within that namespace. >> If I can't do this: >> >> =C2=A0 =C2=A0namespace Foo >> =C2=A0 =C2=A0{ >> =C2=A0 =C2=A0 =C2=A0 =C2=A0class String >> =C2=A0 =C2=A0 =C2=A0 =C2=A0{ >> =C2=A0 =C2=A0 =C2=A0 =C2=A0} >> =C2=A0 =C2=A0} >> >> then I'd consider the implementation too restrictive. This is exactly my concern. > the parser is a little bit dumb, and the namespaces isn't really first > class citizens in php AFAIK, so it's not a deliberate restriction imo, > just a technical, which could be solved. The parser being dumb wouldn't be a reason to make code which works fine on 5.3, break on 5.4 and then again working on 5.5 because of words being keyworded for the sake of "a future implementation" which doesn't explain whether it would break that kind of namespaced classes. Regards, Patrick