No mention of reduced syntax?
ffxsam opened this issue · 6 comments
Just wondering why there's no mention that semicolons are no longer needed.
semicolons are no longer needed.
where did you get that information?
If you're referring to the fact that they don't use semicolons in their examples, that's not something new to ES6, it's just them exploiting the ASI rules that have always been true.
The only "reduced syntax" in this regard that I'm aware of is that commas aren't needed inside class bodies to separate methods. But not aware of any new "no semicolons!" rules.
Ah, ok. I had no idea about that. So in ES6 it's still probably wise to use semicolons as statement terminators then, to avoid potential errors?
It's as wise to use them in ES6 as it was in ES5. That is... yes, I think you should use them. Many think the same. Some think otherwise. :)
Thanks for the tip!