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

// for integer division instead of comments? Are these guys on crack?


Its not unheard of. There's another niche language called "Python" that does exactly the same thing. Comments are `#`, as anyone using a unix shell would expect.


CoffeeScript has always used a single # instead of double // for comments.

In previous versions `//` compiled into an empty regular expression – something a little more difficult to express in JavaScript. But also something pretty much useless — hence the willingness to use it as an operator here.


# has always been for comments. What are you talking about?


Furthermore, # has been used for comments before //, so he's even "wronger" than he probably thought :)


Um, // has never been for comments in coffeescript?




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: