Skip to content

Instantly share code, notes, and snippets.

@rcoh
Created April 10, 2013 05:51
Show Gist options
  • Save rcoh/5352140 to your computer and use it in GitHub Desktop.
Save rcoh/5352140 to your computer and use it in GitHub Desktop.
for (loop_cond) {
int x = 2;
if (x > 1) {
x = -5;
}
print(x);
}
// If we hoist x = 2, then we'll only print once
// If we don't we'll print every time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment