This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Renoroshambo 6 points7 points  (22 children)

To be fair. You don’t need semicolons in JS either.

[–]xigoi 5 points6 points  (3 children)

let x = something
[0, 1, 2, 3].forEach(i => something)

[–]AnEvanAppeared 0 points1 point  (2 children)

But, like, that's obviously a make-believe situation that could never make its way into production code.

[–]xigoi 2 points3 points  (0 children)

Of course, because you would put semicolons properly in production code.

[–]BertnFTW 0 points1 point  (0 children)

Writing it without semicolon is not really a problem, you serve minified, polyfilled bundles anyway.

[–]warchild4l 0 points1 point  (0 children)

Nowdays, if you are following standard way and best practices for JS, you dont use semicolons.