Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdickey/5019085 to your computer and use it in GitHub Desktop.
Save jdickey/5019085 to your computer and use it in GitHub Desktop.
Output from compiling example CoffeeScript source, showing that classes cannot be reopened as in JS and Ruby: they're "just" variables
// Generated by CoffeeScript 1.4.0
(function() {
var A, a;
A = (function() {
function A() {
this.a = 1;
}
return A;
})();
A = (function() {
function A() {}
A.prototype.foo = function() {
return this.a;
};
return A;
})();
a = new A();
a.foo();
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment