Facebook’s Reason programming language is based on OCaml but uses a syntax that is familiar to JavaScript developers.
Reason can almost be considered a statically typed, faster and simpler cousin of JavaScript, minus the cruft and with more powerful features.
You can even do React development using it. Reason compiles to JavaScript and also to native.
There have to be more languages that compile to JavaScript than don’t by now. Isn’t this a sign that JS is fundamentally horrid?
Saying that, I think we’re way too invested in JS on the front-end to see an alternative for the foreseeable future.
LikeLike
No Java is fundamentally horrid but even that is getting better. The main thing JavaScript has going for it are its pure functions but there are many good things in the modern language, iterators, generators, promises, destructuring etc.
That said, there are better languages for all of the above.
LikeLike