Skip to content

Instantly share code, notes, and snippets.

@tim-smart
Created March 22, 2010 00:39
Show Gist options
  • Save tim-smart/339686 to your computer and use it in GitHub Desktop.
Save tim-smart/339686 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