3 ms·
// for integer division instead of comments? Are these guys on crack?
by brokenparser 13y ago
// for integer division instead of comments? Are these guys on crack?
- yefim 13y ago# has always been for comments. What are you talking about?
- oblio 13y agoFurthermore, # has been used for comments before //, so he's even "wronger" than he probably thought :)
- jashkenas 13y agoCoffeeScript 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.
- thedufer 13y agoIts 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.
- Lazare 13y agoUm, // has never been for comments in coffeescript?