int main() {log("Trying to avoid the visual clutter aused by closing curly braces") ;string myStr = "Now, code looks more elegant" ; log(myStr) ; wait ; endHow can i do this in D ? Especially the " #define end }; ". I've tried " alias end = } " but didn't worked.
You can't. D deliberately doesn't have a preprocessor. `#define end };` is one of the reasons.