JS Macros
Something I’d love to see written on top of JavaScript:
macro let(Var v, Equals, Exp e, Block body) {
(function (<v>) {
<body>
})(<e>);
}
macro aif(Exp test, Block body) {
let it = <test> {
<body>
}
}
Filed ↓ dreaming