Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31598 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99401 invoked by uid 1010); 15 Aug 2007 20:52:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 99368 invoked from network); 15 Aug 2007 20:52:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Aug 2007 20:52:59 -0000 Authentication-Results: pb1.pair.com header.from=d.giedrius@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=d.giedrius@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.146.181 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: d.giedrius@gmail.com X-Host-Fingerprint: 209.85.146.181 wa-out-1112.google.com Received: from [209.85.146.181] ([209.85.146.181:24860] helo=wa-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2E/50-31426-9A763C64 for ; Wed, 15 Aug 2007 16:52:59 -0400 Received: by wa-out-1112.google.com with SMTP id l24so42965waf for ; Wed, 15 Aug 2007 13:52:54 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=A2eRg+GLypVqtClAAaAIHPq5PEtBS+ImOK7JNyf3EVWy3f3ZyEDMoAanVjFDgfpJw3+zYANNO8Fupz2gEdmefTw22sDehyCzfui1uPFcsqAQgmfUfsT5xoR4kfq9ENXCFtyRU3YIyPHcW6tD2pJ4l6C7xKEo600zuAmYNqZfi4Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=b1LdO7rSSD/Td39hXErh6velBLC4g1XUNBUI/wgWps7ZUjLZbx7yr9Z5q2Un4Fi9+oInfT38iA76mq9FWmXRhG+CPOtpUVeQLJ7Fv8egppm6G6wpC1ArQI3JNzfdwdxZtVtUDWdmdgOhct/cdIufBS0lu37+rbPpFNGn5iMZR/0= Received: by 10.115.77.1 with SMTP id e1mr14161wal.1187211174611; Wed, 15 Aug 2007 13:52:54 -0700 (PDT) Received: by 10.114.148.18 with HTTP; Wed, 15 Aug 2007 13:52:54 -0700 (PDT) Message-ID: <3d1a63d10708151352x17b3bb83g5b8cdf105531589b@mail.gmail.com> Date: Wed, 15 Aug 2007 23:52:54 +0300 To: "Stanislav Malyshev" Cc: "Ralph Schindler" , "Guilherme Blanco" , "PHP Internals" In-Reply-To: <46C34E11.1020109@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46BE14B1.5050209@zend.com> <6094eac50708150709o6d1fe42bx3449af2bc1b7f54d@mail.gmail.com> <46C337F4.5080001@zend.com> <46C340D1.3070700@zend.com> <46C346D1.7090203@smashlabs.com> <46C34E11.1020109@zend.com> Subject: Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages] From: d.giedrius@gmail.com ("Giedrius D") On 8/15/07, Stanislav Malyshev wrote: > > current implementation doesn't have braces; this (consequently) adds a > > Ouch, not braces again. What is it with braces that you need them so > badly? Many languages aren't using the things ever, isn't it a proof > that there's life outside braces? ;) > Well.. My guess is that If current implementation had braces all this namespace/package thing wouldn't be even discussed now. Everyone would agree that it's namespace thing even if one must put all file contents inside braces for parser to be happy. However without braces current implementation looks like nothing else in PHP. This gives people a space to improvise and/or pushes to look for similarities of syntax in other languages and it seems that the closest match is Java with its packages even though the functionality is different. I don't want to start braces discussion again but may suggest consider adding them? Pros: - It would end this discussion - It would be good for FC. If there would be decided to allow more then one namespace per file in the future. - Syntax would be more consistent with existing constructs in the language (classes/functions/etc) To sum up I think we have namespaces functionality with syntax similar to Java packages. Now the question is do we want developers to: - use namespaces anr/or mimic packages functionality with "namespace" if they want to (+1 for namespace) OR - use "package" the way it shouldn't be to mimic simple namespaces if they don't like/want/need packages (+1 for package) Regards, Giedrius