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

Just FYI, using standalone `@` isn't considered to be good CoffeeScript style. It's discouraged for this very reason -- just use `this` instead.

The reason why it works in the first place is for consistency ... in every other context, you can use an `@` to replace a `this` or `this.`.



FYI, I usually use this instead of @ myself, but in this case I used @ to empathize a grander issue.

And it's not like there's a warning about it being removed on coffeescript.org where it's being mentioned as an alias for this in the first place.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: