Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40490 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58529 invoked from network); 12 Sep 2008 21:12:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Sep 2008 21:12:52 -0000 X-Host-Fingerprint: 24.247.219.180 24-247-219-180.dhcp.cdwr.mi.charter.com Received: from [24.247.219.180] ([24.247.219.180:13656] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 54/7E-22777-35BDAC84 for ; Fri, 12 Sep 2008 17:12:51 -0400 Message-ID: <54.7E.22777.35BDAC84@pb1.pair.com> To: internals@lists.php.net Date: Fri, 12 Sep 2008 17:13:12 -0400 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 References: <48CABEEB.9070201@chiaraquartet.net> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Posted-By: 24.247.219.180 Subject: Re: [PHP-DEV] [PATCH] allow T_INLINE_HTML before T_NAMESPACE From: auroraeosrose@gmail.com (Elizabeth M Smith) Lucas Stephanou wrote: > 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 > > > Ugh, don't top-post please the issue is without the patch, even an empty space or a newline at the start of a file will cause a fatal error Thanks, Elizabeth