• Excel@lemmy.megumin.org
    link
    fedilink
    arrow-up
    29
    arrow-down
    2
    ·
    10 months ago

    What this shows is how terrible raw JS is, when all of this crap is required to fix all of the edge cases and make things actually work the way it’s supposed to.

    • fidodo@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      It only looks like this if you want compression and backwards compatibility. All compiled languages have output that is optimized for those things and not readability, but if you turn off minification and use a modern language target then the compiled typescript code will look almost identical to the original code.