jashkenas/coffee-script — pull request #2289 by qrush (2012-04-26 16:53:22+00:00)
Title: Allow calling functions with a bang! :gun:

This commit adds a little loophole into the rewriter to allow syntax like:

class Foo
bar: ->
"Bang!"

faz = new Foo!
faz.bar! # Bang!

I think it makes extending into objects when you need to use functions a
lot cleaner:

Number.prototype.seconds = ->
this * 1000

4.seconds! # 4000

Perhaps it's a case of parens-itis. Or perhaps it's awesome! I
think it'll end up making quick little calls to methods a little less
painful. One character less.

This was originally inspired by @joshuaclayton's tweet:

https://twitter.com/#!/joshuaclayton/statuses/190496586533576705