proposal: heredoc comments to allow `+/` in comments, eg from urls or documented unittests

Walter Bright newshound2 at digitalmars.com
Sat Feb 10 23:03:08 UTC 2018


On 2/8/2018 7:06 PM, Timothee Cour wrote:
> /"EOC
> This is a multi-line
> heredoc comment allowing
> /+ documented unittests containing nesting comments +/
> and weird urls like https://gcc.gnu.org/onlinedocs/libstdc++/faq.html
> EOS"/

There isn't any commenting scheme that won't trip you up with certain characters 
in the comments. I don't see a compelling case for adding another kind of comment.

Vladimir's suggestion to use %2B instead of + seems to resolve this adequately.


More information about the Digitalmars-d mailing list