Eigenpoll
: D wish list : Custom Syntax
It is a extension to AST macro:
syntax(Name x, "<->", Name y)
{
std.swap($x, $y);
}
//usage:
int a = 2, b = 3;
a <-> b; //equals to std.swap(a, b);
Report this item for cleanup