On Mon, Aug 10, 2009 at 3:36 PM, Darren Duncan<dar...@darrenduncan.net> wrote: > Personally, I think that comments should have trailing # as well as leading > ones, so they are more like strings in that the same character is used to > mark both ends.
You mean like the following? q[quoted text] qq(interpolated quote) s<pattern> = "string" rx(pattern) The leading # in an inline comment is akin to the q|qq|s|tr etc. of the various pseudo-quote structures: it identifies to what purpose the brackets are being used. A trailing # would be superfluous. > Note that my proposal is orthogonal to other issues like double-leading # or > whatever bracketing chars are used. > > Also note that if the # are treated more like delimiters, then potentially > we could also have \# to escape literal #, same as we have \' or \" etc. Ugh. One of the reasons for the likes of q< ... >, etc. is to provide an alternative to having to escape the delimiter by allowing you to select a delimiter that won't clash. By making '#' a delimiter, you remove that ability. -- Jonathan "Dataweaver" Lang