This coffeecode
obj
.func1()
.func2()
will result in
obj.func1().func2();
this work find.
But w
No way for now. There are ongoing discussions for enabling it:
This issue has just been fixed here.
So, for e.g.:
obj
.func1 "aaa"
.func2 "bbb"
will be compiled to
obj.func1("aaa").func2("bbb");
You may need to use the latest version at master branch for now, in npm:
npm install -g http://github.com/jashkenas/coffee-script/tarball/master