<div dir="ltr">People have shunned proposals to have @mixin functions because it wouldn't be obvious at call site that some statement is executed under a mixin (which could access all variables in scope etc).<div><br></div>
<div>The same will happen here; I think it should be clear at call site that a macro is used. </div><div>How about:</div><div><br></div><div>macro!myAssert(1 + 2 == 4);<br></div><div>instead of myAssert(1 + 2 == 4);</div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Nov 10, 2013 at 1:20 PM, Jacob Carlborg <span dir="ltr"><<a href="mailto:doob@me.com" target="_blank">doob@me.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've been thinking quite long of how AST macros could look like in D. I've been posting my vision of AST macros here in the newsgroup a couple of times already. I've now been asked to create a DIP out of it, so here it is:<br>

<br>
<a href="http://wiki.dlang.org/DIP50" target="_blank">http://wiki.dlang.org/DIP50</a><span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
/Jacob Carlborg<br>
</font></span></blockquote></div><br></div>