Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39850 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49078 invoked from network); 12 Aug 2008 00:02:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Aug 2008 00:02:59 -0000 Authentication-Results: pb1.pair.com header.from=ekneuss@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=ekneuss@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.44.30 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: ekneuss@gmail.com X-Host-Fingerprint: 74.125.44.30 yx-out-2324.google.com Received: from [74.125.44.30] ([74.125.44.30:47718] helo=yx-out-2324.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D8/94-25857-F23D0A84 for ; Mon, 11 Aug 2008 20:02:56 -0400 Received: by yx-out-2324.google.com with SMTP id 3so767917yxj.83 for ; Mon, 11 Aug 2008 17:02:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=rDdUchaVf0YvOKVjTbRJggX3y6NL5vHXJrP9mNRAR+8=; b=YuS99Ts/CghMwBzOkcrDHzjEWUJ5MA2gflXBB7HQh70St3cJUK5c15KzbbOhCj7wys ho+OknRQgw0fLC2EsrO6Z0yIlaJQQO0WsWrbzbR7kX6QpYE8MolPEDX0j2RmAjOHlhPd 6uuUOrAGfeMF96d1du8sKiRGF6IyHm7zmrYdY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=jl4y6MSyisuD2rsp1/eJ07PRakzsAw1DoRajqVKGOipb7Jl9mSQvq3ep4mK8AVucBx JS08SiBCl19j1vRKZ91Khw60qqvYQdbfgWGt6OVMoJ8EQdYkdh2gf3Ju8GEGykEUk5uR hMHX8hoLHrm0gviDUP+oWH6h1TotHEJfx/I8o= Received: by 10.151.112.14 with SMTP id p14mr13171666ybm.227.1218499373231; Mon, 11 Aug 2008 17:02:53 -0700 (PDT) Received: by 10.150.197.14 with HTTP; Mon, 11 Aug 2008 17:02:53 -0700 (PDT) Message-ID: Date: Tue, 12 Aug 2008 02:02:53 +0200 Sender: ekneuss@gmail.com To: "Stanislav Malyshev" Cc: hannes.magnusson@gmail.com, "Lukas Kahwe Smith" , "Marcus Boerger" , internals@lists.php.net In-Reply-To: <48A0C415.9090104@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <909776579.20080803142659@marcus-boerger.de> <840985F2-A701-4BE4-91F6-F6B39048CF9B@pooteeweet.org> <48A09FF4.1030101@zend.com> <7f3ed2c30808111411t51553771j389f05c3436bc625@mail.gmail.com> <48A0C415.9090104@zend.com> X-Google-Sender-Auth: 1998e365357df51f Subject: Re: [PHP-DEV] Inconsistencies in 5.3 From: colder@php.net ("Etienne Kneuss") Hello, On Tue, Aug 12, 2008 at 12:58 AM, Stanislav Malyshev wrote: > Hi! > >> So why the $%#$%& can't we use "package" if the implementation has >> nothing incommon with namespaces in c++ (your example, not mine)? > > We could use "package" or we could use "hexaflexagon" or we could use > "triskaidekaphobia" or any other word. But if we have namespace > implementation in PHP, why don't we call it "namespace"? Because it is > "inconsistent" with C++? To hell with C++ then, nobody said PHP is C++. > >> Well. I do want that indentation if I ever will be dumb enough to have >> multiple namespace in the same file.. > > Indentation happens when you do () even once. {} implies that everything > inside it is on next level of hierarchy and thus should be indented. > Of course, it's "inconsistent" with Python, so maybe we should drop braces > altogether... I fail to see why { } meaning a different level of hierarchy is a problem here, that's exactly what it's supposed to mean: "code in that block is affected by that namespace." We don't expect if's to work until the next if(), do we? Even though ifs are not "entities like classes or functions". Additionally, I see the packaging argument being raised to advocate the use of multiple namespaces per file. However, with that syntax, you can't package namespaced and non namespaced code in the same file anyway, that sounds to me like a burden and actually a point against the current syntax. > >> Its not about consistency for me. Its about that little gut feeling you >> have. > > Well, of course I can not address little gut feeling with any logical > argument. But to hell with logic and reasoning, let the little gut feeling > rule. > -- > Stanislav Malyshev, Zend Software Architect > stas@zend.com http://www.zend.com/ > (408)253-8829 MSN: stas@zend.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > > Regards, -- Etienne Kneuss http://www.colder.ch Men never do evil so completely and cheerfully as when they do it from a religious conviction. -- Pascal