June 09, 2022

On 6/9/22 7:39 AM, Adam D Ruppe wrote:

>

On Thursday, 9 June 2022 at 08:19:05 UTC, Paolo Invernizzi wrote:

>

I still think that being able to reflect ddoc comments will be a huge win ... a-la-python-"doc"

Yes, indeed, I've requested this several times, it is useful for a bunch of things like this. There were PRs adding __traits(docComment, symbol) to get it too, but rejected by people who don't use D in the real world. Alas.

An update to ddoc to also parse e.g. @ddoc(string) as ddoc comments would be fine.

Allowing actual comments to affect the compilation of code is not fine.

-Steve

June 09, 2022

On Thursday, 9 June 2022 at 16:39:44 UTC, Steven Schveighoffer wrote:

>

An update to ddoc to also parse e.g. @ddoc(string) as ddoc comments would be fine.

Yeah, I did that for some special purposes already (it is nice to have your own doc generator). But

@doc(q"(

)")

is quite a bit wordier than

/++

+/

lol

>

Allowing actual comments to affect the compilation of code is not fine.

Oh please.

1 2
Next ›   Last »