jashkenas/coffee-script — Issue #1987: Using expressions for class prototype methods
Author: shesek
Created: 2011-12-30 02:45:18+00:00
State: open

It could be nice if `[k]: v` inside class body would compile into `Class.prototype[k]=v`. Also, currently it [throws `UNEXPECTED '{'`](http://coffeescript.org/#try:class%20Foo%20then%20%5Bk%5D%3A%20v), which seems wrong - there's no `{`... shouldn't that be `UNEXPECTED '['`?