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

Walter Bright newshound2 at digitalmars.com
Sun Feb 11 02:53:03 UTC 2018


On 2/10/2018 6:28 PM, Timothee Cour wrote:
> all these workarounds are rather ugly; the proposed syntax works all
> the time (user can just pick a EOC token not in comment) and is analog
> to existing D heredoc strings, so nothing surprising there.
> Would PR's be accepted?

You'll need to make a stronger case for it.

D already has 3 kinds of comments. You can pick a different kind if there are 
conflicting characters with one of them. Or use the mentioned escape methods.


More information about the Digitalmars-d mailing list