back

by sarreph·1y ago·view on hn ↗
> 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?

4 comments
The 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.
there are cases where you need the semicolons; the following code will complain 1 is not a function

  let t=1
  (() => {
    console.log(t)
  })();
You 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.
Hopefully, nobody. Some of us like the semicolons!