Skip to content

Instantly share code, notes, and snippets.

@michelle
Created March 2, 2013 05:05
Show Gist options
  • Save michelle/5069780 to your computer and use it in GitHub Desktop.
Save michelle/5069780 to your computer and use it in GitHub Desktop.
CoffeeScript oddities.
foo: (str) ->
str
'he' + foo('llo ') +'world'
# compiled:
({
foo: function(str) {
return str;
}
});
'he' + foo('llo ')(+'world');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment