Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49016 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47133 invoked from network); 8 Jul 2010 23:01:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jul 2010 23:01:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 unknown Solaris 10 (beta) Received: from [217.114.211.66] ([217.114.211.66:60934] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5F/96-09263-FA8563C4 for ; Thu, 08 Jul 2010 19:01:04 -0400 Received: from [192.168.1.28] (ppp-93-104-37-209.dynamic.mnet-online.de [93.104.37.209]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by config.schlueters.de (Postfix) with ESMTPSA id 64750444DB; Fri, 9 Jul 2010 01:01:00 +0200 (CEST) To: jvlad Cc: internals@lists.php.net In-Reply-To: <62.35.09263.7D9363C4@pb1.pair.com> References: <1430e929de312057f8a7788560e7c92f.squirrel@www.l-i-e.com> <4C34AA60.7070707@ingres.com> <41062215-1091-47AA-B431-B33F1823DE2A@macvicar.net> <22.A3.09263.A2C263C4@pb1.pair.com> <19DF4FB6-92CA-4A4C-8703-7042FE5582C5@macvicar.net> <62.35.09263.7D9363C4@pb1.pair.com> Content-Type: text/plain; charset="UTF-8" Date: Fri, 09 Jul 2010 01:00:55 +0200 Message-ID: <1278630055.15136.2.camel@samnmax> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Single-line comment problem From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Fri, 2010-07-09 at 00:49 +0400, jvlad wrote: > >"Scott MacVicar" wrote: > >Yeah because /* */ has a clear end where // and # doesn't. > > > >- S > > > Shouldn't the end of the line be always considered as a true end of the > one-line comment? > In other words, I think it always has a clear end too. > Similarly, lexer always regognizes the strings - their start and the end so > it could ignore the tags in them too. > Seems the only problem is BC that shouln't be broken. At least not before > v6.

is an absolutely valid reason to use single line comments which end at ?>. I don't think there is a strong enough arguement to change that part of the syntax in any release. Yes it might be confusing some times but it is well defined and established. johannes > -j > > >