DIP81: Writing files at compile time

Nicholas Wilson via Digitalmars-d digitalmars-d at puremagic.com
Wed Aug 12 17:31:16 PDT 2015


On Wednesday, 12 August 2015 at 23:27:16 UTC, Tofu Ninja wrote:
> On Wednesday, 12 August 2015 at 18:37:40 UTC, JDemler wrote:
>> [...]
>
> The benefits of this I see are debugging, actually having the 
> generated files makes it much simpler to see what is going 
> wrong. Otherwise the utility of this can be achieved with 
> string mixins.
>
> A simple alternative to this would be a flag to the compiler to 
> expand mixins and output the new files. This would also be 
> great for tooling, an IDE could use this and allow you to 
> expand a mixin in place to see what it looks like. And 
> currently all the auto complete engines I have seen for D don't 
> handle mixins very well. Expanding them would make 
> autocompletion a simpler job.

I think this is a much better idea.

Nic


More information about the Digitalmars-d mailing list