On Friday, 14 October 2016 at 13:13:16 UTC, Andrei Alexandrescu wrote:
https://issues.dlang.org/show_bug.cgi?id=5051 -- Andrei


Reminds me of Lisp, where they also have code generation wrapped in code generation wrapped in ... here is an example: http://stackoverflow.com/q/16579844/2361979

Lispers have a REPL and can expand interactively and specifically, though.

I guess the most awesome D use case would be inside an IDE. Click on a template/mixin call to expand exactly that one. An IDE would have access to all build and link parameters, which naturally influence this.

For example, click on "foo.find(bar)" and it opens a new buffer/tab/window, where the correct variant of find is instantiated according to foo and bar.

Click on "mixin Foo;" and it inlines the instantiated code.

Reply via email to