DIP81: Writing files at compile time
ixid via Digitalmars-d
digitalmars-d at puremagic.com
Thu Aug 13 03:35:52 PDT 2015
On Thursday, 13 August 2015 at 06:53:14 UTC, Jacob Carlborg wrote:
> On 2015-08-13 01:27, Tofu Ninja wrote:
>
>> 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 agree, this is much better. I remember the old Eclipse
> plugin, Descent. It had a compile time view which showed how
> mixins where expanded and how some language features where
> lowered, i.e. "scope" to try-catch-finally.
This would be great but we would need some support for the
formatting I think, mixin code tends to be a mess, it would be
nice to have some basic auto indent or general FMT style support.
More information about the Digitalmars-d
mailing list