Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39852 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52395 invoked from network); 12 Aug 2008 00:21:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Aug 2008 00:21:30 -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:50659] helo=yx-out-2324.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B9/45-25857-687D0A84 for ; Mon, 11 Aug 2008 20:21:27 -0400 Received: by yx-out-2324.google.com with SMTP id 3so771646yxj.83 for ; Mon, 11 Aug 2008 17:21:24 -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=lK4m/jjMmDRk3AljAUPy0X/nzv2E8CFZx/Vxrx/hl98=; b=oQNm4LrTQ4Vclc1wSdhSSaFvUIw4Ay0lNwSR9O2caGw3pb7rzo68Y5kFz5++s695PG R3AzimxV/sMy2QJaQiXxupfY1Zc6YzZmQO/Rt+GHLZGyEBwI5vyZx/2aAjJY8oCvPYql ZFGkKu9BVH5Yj11DSxYmhWb33FPM3+MV2vVqc= 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=lls9VtgYAL6XcrLQhxd6vBGqt0iEzkspecNQO0AlFgUcijBwx/aLgq7MnrqwuI4Xs2 8BAbWJOXm9MNUMRT81Vih4V4EsyxYH29juJk0SXJmHCK/Flgx8Dbl0h59tt8M0clkyY9 BcGTxka2/lwQCSC0pRhXNf5knK+j0GEtSzJYo= Received: by 10.150.220.19 with SMTP id s19mr13209874ybg.189.1218500483866; Mon, 11 Aug 2008 17:21:23 -0700 (PDT) Received: by 10.150.197.14 with HTTP; Mon, 11 Aug 2008 17:21:23 -0700 (PDT) Message-ID: Date: Tue, 12 Aug 2008 02:21:23 +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: <48A0D579.2000000@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> <48A0D579.2000000@zend.com> X-Google-Sender-Auth: f0cbee8a03a76863 Subject: Re: [PHP-DEV] Inconsistencies in 5.3 From: colder@php.net ("Etienne Kneuss") Hello, On Tue, Aug 12, 2008 at 2:12 AM, Stanislav Malyshev wrote: > Hi! > >> 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." > > Exactly. The thing is that there can be no code that is not affected (at > least not in this file) for namespaces - and {} implies there could be. but if the {} syntax is introduced, it will be made to affect only the code inside it, right? If so, I fail to see your point, since the new syntax will solve that problem. > >> We don't expect if's to work until the next if(), do we? Even though >> ifs are not "entities like classes or functions". > > Exactly. That's why it makes sense to have if() with braces - because if > works not until the end of file, but only with the block attached to it, and > after this block ends, it's like there was no if. But namespace doesn't work > this way. Same as before: but they would work this way with the {} syntax > -- > Stanislav Malyshev, Zend Software Architect > stas@zend.com http://www.zend.com/ > (408)253-8829 MSN: stas@zend.com > > -- Etienne Kneuss http://www.colder.ch Men never do evil so completely and cheerfully as when they do it from a religious conviction. -- Pascal