what are some techniques for DRY-ing up macros in Sweet.js? <p>let's say i have these two macros which are identical except for the macro name:</p> <pre><code>macro h1 { case {$name ($x (,) ...)} =&gt; { letstx $nameVal = [makeValue(unwrapSyntax(#{$name}), null)] return #{React.createElement($nameVal, $x (,) ...)} } } macro h2 { case {$name ($x (,) ...)} =&gt; { letstx $nameVal = [makeValue(unwrapSyntax(#{$name}), null)] return #{React.createElement($nameVal, $x (,) ...)} } } </code></pre> <p>what are my options for code reuse here? can i have a macro generate a macro? </p> <p>or could i minimally place the body portion (beginning with <code>letstx...</code>) in it's own 'internal' macro?:</p>