News for hackers. Stuff that matters.
Re:Writing Eloquent JavaScript Without CoffeeScript by gokangaroo on Friday December 09, 2011 @11:18AM (#3334237)
In these cases, I would check for the type, so instead of your example, I would say "var a = typeof a !== 'undefined' ? a || someDefault". (Not that that is particularly pretty, it's actually quite ugly.)
Re:Writing Eloquent JavaScript Without CoffeeScript by DougBTX on Friday December 09, 2011 @02:25PM (#3335154)
That's also a syntax error; I think CoffeeScript wins this round.