Proposal: __traits(getComment, symbol)

Per Nordlöw per.nordlow at gmail.com
Wed Aug 28 10:00:07 UTC 2019


On Wednesday, 28 August 2019 at 09:04:06 UTC, Eugene Wissner 
wrote:
> I think the languages that have "comment reflection", use this 
> instead of custom attributes. In PHP for example
>
> /**
>  * @ORM\Entity(...)
>  */
> class MyEntity { ... }
>
>
> Because there are no attributes. Why can't you just use UDAs 
> instead of comments?

We must also take into account differences in compilation time 
and memory for alternative solutions, in this case __traits vs 
UDAs.


More information about the Digitalmars-d mailing list