function hello() {
var x = 0;
return
{
x: x,
y: y
};
};
Just putting semicolons where you think it can work won't help you. If you write javascript, you must know what the asi does. So semicolons or no semicolons is completely irrelevant.This is precisely why I hate optional syntax, regardless of which way your preferences fall on this particular one.
Re:Bling – the $ of jQuery without the jQuery
by bakabaka9 on Monday June 15, 2015 @11:34AM
(#9719974)
Mindlessly inserting unnecessary syntax instead of learning the damn language. Hacker News should be proud of its lusers.
Re:Bling – the $ of jQuery without the jQuery
by taco_emoji on Monday June 15, 2015 @12:18PM
(#9720323)
I don't have a photographic memory. If "learning the language" means rote memorization of an inconsistent set of rules for how the fucking code is parsed, then you're goddamn right I'd rather mindlessly insert a character that obviates that.
Here's an even easier and clearer one: finish every statement with a semicolon.