Created
November 17, 2014 20:12
-
-
Save disnet/9d216aee2442d737df35 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let function = macro { | |
rule { $name (callback $arg $rest ...) { $body ... } } => { | |
function $name ($arg $rest ...) { | |
$body ... | |
} | |
} | |
} | |
function foo(callback cb, x, y, z) { | |
cb(x + y + z); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment