Proposal: __traits(getComment, symbol)

Petar Petar
Thu Aug 29 14:45:30 UTC 2019


On Thursday, 29 August 2019 at 12:27:33 UTC, Jacob Carlborg wrote:
>
> True, although I think there are use cases for both AST 
> macros/`__traits(getAST)` and using the compiler as a library.
>
> Something like inspecting the AST of all source files of a 
> project and do something seems a bit difficult to do with AST 
> macros/`__traits(getAST)`.

Yes of course, I'm just saying that __traits(getAST) is 
definitely a necessary feature, just like templates are today for 
D. That doesn't exclude all the other valid reasons for using the 
compiler as a library.



More information about the Digitalmars-d mailing list