• Azzu@leminal.space
    link
    fedilink
    English
    arrow-up
    12
    arrow-down
    1
    ·
    9 days ago

    To expand on this: Ideally you would work in a language you didn’t have these inane rules about semicolons, like the article is obviously good and correct, but it’s just not something that anyone should have to think about, it doesn’t lead to better programs.

    • Serinus@lemmy.world
      cake
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      2
      ·
      8 days ago

      There’s a lot of room for criticism of JavaScript, but this ain’t it.

      Just use semicolons at the end of a statement and it’s simple. There are only inane rules about it if you’re trying to skip semicolons, and why the fuck should anyone bother with that?

      • Azzu@leminal.space
        link
        fedilink
        English
        arrow-up
        2
        ·
        8 days ago

        The inane thing is being able to skip semicolons. Exactly, why should anyone bother with that. We wouldn’t have this conversation. So yes, this is valid criticism of JavaScript, it’s not a very important one at all, but still.

    • very_well_lost@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 days ago

      Ideally you would work in a language you didn’t have these inane rules about semicolons

      I wish I had the luxury of not working with JavaScript… but sadly it’s still the only game in town on the web.

      • Azzu@leminal.space
        link
        fedilink
        English
        arrow-up
        1
        ·
        8 days ago

        There are languages that compile into JS, might be worth to look at that. I like Clojurescript, but others are also good.