News for hackers. Stuff that matters.
Re:Node.js Guide by joelhaasnoot on Wednesday March 30, 2011 @04:37PM (#2389105)
If that's so, why do we not see this in other mainstream languages? While I see the slight advantage of seeing errors, that is the first thing node sees. I use either nodemon or cluster, which both monitor your program on saving your code. When you think you're ready to go, save and see if it has no compile errors.
Re:Node.js Guide by jberryman on Wednesday March 30, 2011 @05:32PM (#2389338)
I don't know if haskell counts as a mainstream language, but it's pretty common to see this pattern in a module's export list. I go back and forth.
Re:Node.js Guide by jerf on Wednesday March 30, 2011 @07:58PM (#2389792)
Haskell's an odd case; experienced Haskell users are likely to be thinking of the comma as less of a "separator" than a "combinator" constructing a tuple, and preceding-combinator-on-newline is an idiomatic style. Which doesn't disprove your point, I'm just saying it's an edge case. This is after all the language community that interprets a semicolon (as used in most languages) as a combinator too.
Re:Node.js Guide by bartonfink on Wednesday March 30, 2011 @04:58PM (#2389208)
I do this all the time on large SQL statements. Otherwise, I rarely use the comma operator, so it hasn't come up.