Skip to content

Instantly share code, notes, and snippets.

@saschanaz
Created September 3, 2014 11:23
Show Gist options
  • Save saschanaz/12dc8f38500f1f3ec098 to your computer and use it in GitHub Desktop.
Save saschanaz/12dc8f38500f1f3ec098 to your computer and use it in GitHub Desktop.
Design proposal: Bound function

ES proposal:

bound function foo() {
}

foo(); // invalid, cannot be called directly
bar.addEventListener("some", foo); // can be passed as a normal function

TS proposal:

bound<String> function foo() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment