3 ms·
None of the available alternatives to typescript — Elm, Purescript, Reason/Rescript — give me the same feeling of confidence in the future direction of these pr
by azangru 5y ago
None of the available alternatives to typescript — Elm, Purescript, Reason/Rescript — give me the same feeling of confidence in the future direction of these projects as typescript does. At least typescript is very closely aligned with the development of javascript; and it's also very widely used.
- Elm: not general-purpose enough (only useful for UIs), plus has a tendency of making drastic changes between versions (remember how loudly people complained here? [0])
- Purescript: the designer of the language, Phil Freeman, has stepped away from this project, and it doesn't seem to have gained sufficient traction
- Rescript: I'm put off by its ocamlness; and worry whether it will repeat the trajectory of Flow, which has essentially become irrelevant
[0] - https://news.ycombinator.com/item?id=22821447 https://news.ycombinator.com/item?id=22821447
- cardanome 5y ago> Elm: not general-purpose enough (only useful for UIs), plus has a tendency of making drastic changes between versions (remember how loudly people complained here? Not really, it just has a slow release schedule. Over time it is relatively stable. Not a single thing has changed about it the last two years and the creator has communicated that it will probably stay mostly the same for quite a while. Yes, there have been some bigger changes in the past but that is fair game for software that hasn't hit version 1 yet and it was communicated that it might happen. The drama is mostly an issue caused by misaligned expectations: Many people assume that open source projects should be developed openly with everyone being able to contribute and having a say about the direction. Evan, the author of Elm, prefers to keep tight control of everything. The approach has some advantages and disadvantages and I can see why people might decide to stay away from the community but honestly if you just want to get work done in Elm, it is not much of an issue either way. Elm is probably the most stable and reliable choice for frontend code and helps avoiding the churn that happens in the JS ecosystems.
- fbn79 5y agoIdris 2 looks promising... I suggest keep an eye on it https://github.com/idris-lang/Idris2 https://github.com/idris-lang/Idris2
- metta2uall 5y agoThere is also F# via Fable: https://fable.io https://fable.io Business logic can be shared with .NET and it has lots of ways to interoperate with JS. There's even a TypeScript converter though of course it's not as pleasant as "yarn add" and YMMV : https://fable.io/ts2fable/ https://fable.io/ts2fable/ Here's a demo of building some React components in F#: https://www.youtube.com/watch?v=a6Ct3CM_lj4&t=860s https://www.youtube.com/watch?v=a6Ct3CM_lj4&t=860s