3 ms·
> Just looking at JavaScript, with its ugly flights of brackets and braces and unnecessary-seeming reams of semicolons, made me miserable. Who's going to tell
by sarreph 2y ago
> Just looking at JavaScript, with its ugly flights of brackets and braces and unnecessary-seeming reams of semicolons, made me miserable.
Who's going to tell them you don't need the semicolons?
- wruza 2y agoThe years will tell them everything they need and at all times they’ll be miserable still. Let the guy float in these most important distinctions while they can.
- GeoAtreides 2y agothere are cases where you need the semicolons; the following code will complain 1 is not a function let t=1 (() => { console.log(t) })();
- deleted 2y ago[deleted]
- binkethy 2y agoYou sometimes need the semicolons, particularly with regards to line breaks and interwoven server rendered template tags, i.e. if writing a function that is embedded in the server rendered template to be called by your bundled code, etc.
- oneeyedpigeon 2y agoHopefully, nobody. Some of us like the semicolons!