CoffeeScript has a nice syntactic sugar for setting properties by prefixing the argument name with "@":
class Foo
constructor: (@x, @y) ->
@z = @x + @y
setFoo: (@foo) ->
Which compiles to: http://coffeescript.org/#try:class%20Foo%0A%20%20constructor...