Created
March 2, 2013 05:05
-
-
Save michelle/5069780 to your computer and use it in GitHub Desktop.
CoffeeScript oddities.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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