Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40485 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41944 invoked from network); 12 Sep 2008 20:01:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Sep 2008 20:01:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=david.coallier@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=david.coallier@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.146.176 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: david.coallier@gmail.com X-Host-Fingerprint: 209.85.146.176 wa-out-1112.google.com Received: from [209.85.146.176] ([209.85.146.176:43076] helo=wa-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C6/DA-22777-49ACAC84 for ; Fri, 12 Sep 2008 16:01:24 -0400 Received: by wa-out-1112.google.com with SMTP id v27so580446wah.17 for ; Fri, 12 Sep 2008 13:01:22 -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=JbSvzGvLiXDGKRG91+UPZEpoOVry0Fnbq6UvHGo8d1M=; b=EwgEwhw6mUH4JujDVMcvkPeWGb8m3XInGMcJeHFM+N8e3Hohfsyc10MxnwZ6EmjHGx mJJgttnxLte7cwTH1b9jjOuigPCM92jlLTYXtRB+Jmn/QkgOT8tY/hk4RzHybpx6z6Nt 6dDu+l7qe9rfqpBMIKpiaVjoeeiJaWGgLNlro= 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=oqkVmsg+s8phq6zUH7ysSeuqu+m0XYJLLcwnzRyPJhFuCnAVuCqvMdRiYrHqC3fvE+ 8wlaBnXB1oQ8la5E9hNTOJszc8Q15rA3aV3teC4IcsHJWGLkWzh3yCIX0mabU6ol04Lq M6L9u4zuARJrZafvavWfoKSIVm7JdA69RQXXw= Received: by 10.115.46.10 with SMTP id y10mr3827214waj.137.1221249681965; Fri, 12 Sep 2008 13:01:21 -0700 (PDT) Received: by 10.115.22.7 with HTTP; Fri, 12 Sep 2008 13:01:21 -0700 (PDT) Message-ID: Date: Fri, 12 Sep 2008 21:01:21 +0100 Sender: david.coallier@gmail.com To: "Greg Beaver" Cc: internals@lists.php.net In-Reply-To: <48CABEEB.9070201@chiaraquartet.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48CABEEB.9070201@chiaraquartet.net> X-Google-Sender-Auth: 32832f463ab7cd0d Subject: Re: [PHP-DEV] [PATCH] allow T_INLINE_HTML before T_NAMESPACE From: davidc@php.net ("David Coallier") 2008/9/12 Greg Beaver : > Hi, > > This is a simple patch that allows files like this: > > main.php: > > > > template example > > > > namespace my::template; > // stuff > ?> > > Is it me or this doesn't look really clean? I have a clear idea that namespaces are there to add an extra structural layer to the code and not to be randomly used in some HTML/PHP/Javascript mixing. Since the current namespace implementation doesn't want to have multiple namespaces per file, I think we should restrict a namespace per file to... a namespace per file, and nothing else. I can't imagine taking over someone's code who had declared a namespace under is footer template. Perhaps I am missing something but that would be bloody ugly in the end :) -- Slan, David