develooper Front page | perl.perl6.language | Postings from August 2009

Re: Embedded comments: two proposed solutions to the comment-whole-lines problem

Thread Previous | Thread Next
From:
Jon Lang
Date:
August 10, 2009 14:33
Subject:
Re: Embedded comments: two proposed solutions to the comment-whole-lines problem
Message ID:
ef30550b0908101433q5f19c198s437f2a7c22dd196b@mail.gmail.com
On Mon, Aug 10, 2009 at 2:16 PM, Mark J. Reed<markjreed@gmail.com> wrote:
> I still like the double-bracket idea. I don't much mind the extra
> character; 5 characters total still beats the 7 of HTML/XML.

Agreed.  As I said, the biggest potential stumbling block for this
would be the existence of a double-bracket that sees frequent use at
the start of a line.  Query: does '<<' count as a double bracket, or
as a single bracket (since it's equivalent to '«')?  If the former,
then there's a respectable chance of seeing a line that begins with
'<<' which would comment out as an inline comment rather than an
end-of-line comment.  If the latter, lines beginning with '<<' would
still comment out as end-of-line comments.  Off the top of my head, I
can't think of any other bracketing characters that are commonly
doubled up.

-- 
Jonathan "Dataweaver" Lang

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About