Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39597 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62447 invoked from network); 4 Aug 2008 06:55:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2008 06:55:22 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.163 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 212.25.124.163 il-gw1.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.163] ([212.25.124.163:53452] helo=il-gw1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 22/C2-46562-8D7A6984 for ; Mon, 04 Aug 2008 02:55:21 -0400 Received: from [10.1.10.5] ([10.1.10.5]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 4 Aug 2008 09:56:00 +0300 Message-ID: <4896A7C4.8090503@zend.com> Date: Mon, 04 Aug 2008 10:55:00 +0400 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Marcus Boerger CC: internals@lists.php.net References: <909776579.20080803142659@marcus-boerger.de> In-Reply-To: <909776579.20080803142659@marcus-boerger.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 04 Aug 2008 06:56:02.0075 (UTC) FILETIME=[283F1EB0:01C8F5FF] Subject: Re: [PHP-DEV] Inconsistencies in 5.3 From: dmitry@zend.com (Dmitry Stogov) Hi Marcus, see below 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. For me 'use' is the best keyword as it says that closure uses variables from current content. (the same keyword is used for import from namespaces) > 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. I don't like multiple namespaces per file too. As I remember they were introduced by Greg's request related to ext/phar. May be he already changed his mind. 'package' or 'namespace' is not so important for me. Thanks. Dmitry. > 3) __invokable, see Etiene's mail > > Best regards, > Marcus > >