Closed fmap closed 10 years ago
js> function S() {};
js> var s = new S();
js> s.constructor.toString();
"function S() {}"
js> /^function ([^(]+)\(/.exec(s.constructor.toString())[1]
"S"
lol, this doesn't actually require any changes to the implementation. Closing.
How can we define instances for new classes? Besides the obvious provision, this'd let us define multiple instances valid for one type (think ZipList, Sum, Product..)