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:
Patrick R. Michaud
Date:
August 10, 2009 12:25
Subject:
Re: Embedded comments: two proposed solutions to thecomment-whole-lines problem
Message ID:
20090810192500.GA5102@pmichaud.com
On Mon, Aug 10, 2009 at 06:46:34PM +0100, smuj wrote:
> Although I can see some minimal uses for embedded comments, I think in  
> general the cost/benefit ratio isn't enough to warrant their existence.  
> I could be wrong of course! :-) I'd like to know if anyone has made much  
> use of them in their code, and under what circumstances.

I've used embedded comments a number of times (especially in examples)
and found them to be incredibly useful.  I'd be sad to see them disappear.

I'd be fine with the ##(embedded comment solution) approach (doubling
the #'s), but it's much less visually appealing to me.  I think I'd 
prefer to see a doubling of the bracketing chars instead of doubling 
the #'s -- the # is visually a "heavy" glyph and I'd prefer 
something a bit lighter.

    #((embedded comment))
    #{{embedded comment}}

Pm


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