Created
February 17, 2014 18:04
-
-
Save Spaceghost/9055820 to your computer and use it in GitHub Desktop.
Why I hate Coffeescript.
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
a = undefined # var a; | |
a = "lol" # a = 'lol'; | |
rawr = (-> # rawr = function() { | |
a = "wat" # var a = 'wat'; | |
a # return a; | |
).call() # }.call(); | |
console.log a # console.log(a); | |
# returns 'wat' # returns 'lol' | |
# What the fucking fuck, Coffeescript... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@ajmurmann, it's showing that coffeescript doesn't use var within function definitions. They don't like var.