News for hackers. Stuff that matters.
Re:MoonScript - A programmer friendly language that compiles... by ColinWright on Thursday August 11, 2011 @04:28AM (#2871988)
Are you actually claiming that "#" is a computer science convention for comments? It's not used in C, C++, Fortran, Lua, or many other languages. For example, comments in OCaml are ( * ... * ) (I've put extra spaces to thwart HN's formatting.

Language using "--" for comments include Lua and Haskell.

You've made me curious - what languages to you use/know that make you think "#" is a "CS convention" for comments?

EDIT: Found a reference:

http://en.wikipedia.org/wiki/Comparison_of_programming_langu...

Further edit: In response to the clarification that CS meant CoffeeScript and not Computer Science (nor the riot control gas), the point, I guess, then follows other commentators, who observe that Lua, to which this compiles, uses "--".

Re:MoonScript - A programmer friendly language that compiles... by Cushman on Thursday August 11, 2011 @05:31AM (#2872108)
But you're after the right point— the languages are bash, Perl, Python, Ruby. It's a scripting language convention, hence why CoffeeScript adopted it over JavaScript's `//`, hence the confusion as to why MoonScript didn't.
Re:MoonScript - A programmer friendly language that compiles... by clyfe on Thursday August 11, 2011 @04:56AM (#2872052)
by CS I mean CoffeeScript, sorry about ambiguity
Re:MoonScript - A programmer friendly language that compiles... by squarecog on Thursday August 11, 2011 @04:39AM (#2872016)
CoffeeScript. CS. JavaScript. JS.