Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40488 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52577 invoked from network); 12 Sep 2008 20:50:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Sep 2008 20:50:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=domluc@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=domluc@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.14 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: domluc@gmail.com X-Host-Fingerprint: 209.85.217.14 mail-gx0-f14.google.com Received: from [209.85.217.14] ([209.85.217.14:44030] helo=mail-gx0-f14.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6C/2D-22777-B26DAC84 for ; Fri, 12 Sep 2008 16:50:51 -0400 Received: by gxk7 with SMTP id 7so20109753gxk.23 for ; Fri, 12 Sep 2008 13:50:48 -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:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=P9CfmOqXs54mtZauqEZwRRKSTQnpupvoVV5tt8GGtYc=; b=VCvaCU4Adw7UDJ9B148Y81Yt7cZNDNdGPhK1DbiWRWPJw6WtUW2CLeTjCv9TW1Hvwi 3BUEortn2wAegVYB2LmQXaVXe7TGXDeZXEd/R+cK5dJwYlelUf11DuZjXN1olCxcc1EI iLwVzqrKWyovlySRck60nQ2X28qb0f7CMmvV8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=UFl2/NEItz3LQ4jvsdF54POIR95+GwOethvwobb3Al7nOUaDP1TeG5ponQj2zdpHeP +rxbiXjIZmJNfHiIYxA0mHSqExxp15MGNC88mNP18XQKBxaU/LSeB72gjmLY+z9vKHTN dpUtNHjP8wY314f6xsU6jTMnJbxwzFcco3Rb0= Received: by 10.103.249.7 with SMTP id b7mr3362592mus.2.1221252647862; Fri, 12 Sep 2008 13:50:47 -0700 (PDT) Received: by 10.103.225.8 with HTTP; Fri, 12 Sep 2008 13:50:47 -0700 (PDT) Message-ID: Date: Fri, 12 Sep 2008 17:50:47 -0300 To: internals@lists.php.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48CABEEB.9070201@chiaraquartet.net> Subject: [PHP-DEV] [PATCH] allow T_INLINE_HTML before T_NAMESPACE From: domluc@gmail.com ("Lucas Stephanou") My first msg in this list And I agree with you David. Mix html and namespace is very very ugly. 2008/9/12 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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Lucas Stephanou -- Lucas Stephanou