Skip to content

Instantly share code, notes, and snippets.

@disnet
Created November 17, 2014 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save disnet/9d216aee2442d737df35 to your computer and use it in GitHub Desktop.
Save disnet/9d216aee2442d737df35 to your computer and use it in GitHub Desktop.
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