Why I love D: function parameter reification

Steven Schveighoffer schveiguy at gmail.com
Thu Jun 9 16:39:44 UTC 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


More information about the Digitalmars-d mailing list