Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Given that you're using CoffeeScript, is there a reason you're not using @ instead of this.?


@ is the shorthand for this.


That's exactly what he was asking: Since @foo is shorthand for this.foo, why are the code snippets littered with this.method, this.prop, this.blah and the likes?


Ah, my bad, I've misread the question




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: