Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39571 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37518 invoked from network); 3 Aug 2008 15:25:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Aug 2008 15:25:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=phplists@jeremyprivett.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=phplists@jeremyprivett.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain jeremyprivett.com from 207.210.105.50 cause and error) X-PHP-List-Original-Sender: phplists@jeremyprivett.com X-Host-Fingerprint: 207.210.105.50 analucia.asmallorange.com Received: from [207.210.105.50] ([207.210.105.50:55346] helo=analucia.asmallorange.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 86/7D-50899-50EC5984 for ; Sun, 03 Aug 2008 11:25:58 -0400 Received: from adsl-074-180-100-128.sip.bhm.bellsouth.net ([74.180.100.128]:53908 helo=klinthia) by analucia.asmallorange.com with esmtpa (Exim 4.69) (envelope-from ) id 1KPfT3-0002xR-ID for internals@lists.php.net; Sun, 03 Aug 2008 11:25:57 -0400 Date: Sun, 03 Aug 2008 10:25:51 -0500 To: "internals@lists.php.net" Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 References: <909776579.20080803142659@marcus-boerger.de> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: User-Agent: Opera Mail/9.51 (Win32) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - analucia.asmallorange.com X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jeremyprivett.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [PHP-DEV] Inconsistencies in 5.3 From: phplists@jeremyprivett.com ("Jeremy Privett") Hey Marcus, On Sun, 03 Aug 2008 07:26:59 -0500, Marcus Boerger wrote: > Hello Internals, > > please let's not introduce new inconsistencies. Rather lets make new > stuff consistent with old stuff during the alpha phase of 5.3. > > 1) new keyword 'use'. Semantically it is the same as 'static' or 'global' > so it should be used in the same location. > > 2) namespaces, either use 'package' and only one per file, or use > 'namespace' with curly braces. Read this as be consistent with other > languages and even if one or two people do not like it the two main > languages out there which have it are Java which goes with the former and > C++ which does the latter. Please chose and not mix it. Also our mix is a > nightmare when developing code. > > If we feel we have to keep the keyword 'namesapce' but cannot have curly > braces, than I suggest we disallow multiple namespace per file. > > And there is no technical reason and surely no other reason whatsoever to > not have curly braces. If there is then we either fix that or went with > the > wrong approach. > > 3) __invokable, see Etiene's mail > > Best regards, > Marcus > > I'm +1 with you on all of these. Unfortunately, #2 has been beat to death, revived, and beat to death again so many times that the chances of getting anyone to budge on it now are probably pretty slim. It is inconsistent to not allow curly braces on "namespace" when *every other similar construct in the language* uses curly braces (this is like str_* vs str* all over again, haven't we learned by now?). Thanks. -- Jeremy Privett Chief Software Architect Omega Vortex Corporation http://www.omegavortex.net