Comment by vips7L

6 hours ago

KotlinJs and ClojureJs too. You always end up having to write wrappers or dealing with problems that would just work if you just used normal js/ts.

Clojurescript not ClojureJs, and Typescript doesn't run in the browser, it has the exact same issues/limitations: it must be compiled to JavaScript first.

  • Except TS has much wider community support. The type definitions/wrappers are already written.

  • Compiling TypeScript is just stripping out types

    • Isn't that like saying the Internet is only written in English if you strip out all the non-English. All C-style languages are fully cross compatible if you only use semicolons.

      I can't write Typescript into a browser without cross-compilation and "stripping out types" involves parsing and manipulating code. That's a different language.

    • That is true only if you confine your TS code to be pure JS plus type annotations.

      There are TS constructs that require compilation into equivalent JS, such as enums and namespaces.

      6 replies →