• TCB13
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 months ago

    This isn’t true, there are other features that “emit code”, that includes: namespaces, decorators and some cases even async / await (when targeting ES5 or ES6).

    • mbtrhcs@feddit.org
      link
      fedilink
      arrow-up
      1
      ·
      10 months ago

      namespaces, decorators

      Decorators are also a fairly niche feature and if you wanted to use the equivalent to a namespace in JS you’d have to write code for it too. Neither of which would explain a 5x energy consumption jump.

      and some cases even async / await (when targeting ES5 or ES6)

      …which is exactly what I said the researchers probably did, putting TS at a significant disadvantage. Thank you for proving my point, I guess.