jashkenas/coffeescript

Proposal: Add end word to close method or class

thadeu opened this issue · 2 comments

What do you think that add end word to close class/method like Ruby?

For example.

class GetByObjectOrKey
  get: (key) -> console.log(key)
end

I’m afraid that ship sank a long, long time ago!
There are other Ruby-to-JS compilers if you prefer to use that. Or if you must absolute have endful coffee, something like (window ? global).end = null should do tve trick.

@vendethiel It's awful believe this. CoffeeScript is so nice!