Last active
December 14, 2015 03:09
-
-
Save jdickey/5019060 to your computer and use it in GitHub Desktop.
Example CoffeeScript source, showing that classes cannot be reopened as in JS and Ruby.
This file contains hidden or 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
class A | |
constructor: -> | |
@a = 1 | |
class A | |
foo: -> | |
@a | |
a = new A() | |
a.foo() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment