Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jashkenas/339689 to your computer and use it in GitHub Desktop.
Save jashkenas/339689 to your computer and use it in GitHub Desktop.
func: (should_i) ->
do_it() if should_i = true
somevar: 0
while should_i = true
do_it()
somevar: somevar + 1
should_i: false
# Compared to
func: (should_i) ->
do_it() if should_i is true
somevar: 0
while should_i is true
do_it()
somevar += 1
should_i: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment