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

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

Thread Previous | Thread Next
From:
Ben Morrow
Date:
August 11, 2009 02:46
Subject:
Re: Embedded comments: two proposed solutions to thecomment-whole-lines problem
Message ID:
20090810224047.GA66903@osiris.mauzo.dyndns.org
Quoth markjreed@gmail.com (Mark J. Reed):
> 
> 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.

I much prefer double-bracket to double-#: double-# gets caught out when
you do s/^/# on code which already includes line-starting # comments.

However, I would much rather see a general syntax like

    (# ... )
    {# ... }
    [# ... ]

with no whitespace allowed between the opening bracket and the #: this
doesn't seem to conflict with anything. Allowing <# ... > in rules would
also be nice.

Ben


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