DEV Community

Discussion on: What is your favourite Javascript superset and why is it TypeScript?

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

You should really rename your question to compile to JavaScript, as it will also include something like Dart (AngularDart / Dart2js), Blazor (C#), etc.

If you mean Babel, Flow, JSX -- I like TypeScript, because it is easy to setup and standardized enough. But under the hood, Vue CLI does create .babelrc.js along with tsconfig.json.

  • Flow feels like optional TypeScript to me, and it does require compilation.
  • I don't like JSX / TSX. As for now, I will import HTML with raw-loader instead. (*.vue can also import *.ts as well.)
  • I also like interface and writing declaration files.

Svelte looks nice. I might try it sometimes.

Elmlang looks both complicated and React-like. I feel like it is not yet for me.

I feel that CoffeeScript is relatively dead...

I don't know much about ReasonML / PureScript, etc.

Collapse
 
saint4eva profile image
saint4eva

Blazor (C#) is not really about compiling down to JavaScript, rather about targeting WebAssembly which almost all the modern browsers support.