33 ms·
What other options are there? All I can think of is Flow.
by JMTQp8lwXL 7y ago
What other options are there? All I can think of is Flow.
- toastal 7y agoI mean there's the typed functional set, PureScript, Elm, BuckleScript, Reason, etc., that compete with TypeScript on type systems why compiling to JS while offering better ergonomics for FP-style code.
- JMTQp8lwXL 7y agoThey could be serious contenders only if they coexist gracefully with the rest of the JavaScript ecosystem: e.g., here's this new awesome type system, but oh... You can't use React + Redux + Material UI with it, it's might be D.O.A to a certain segment of engineers since it has no real practical application for solving today's front end engineering problems with them.
- toastal 7y agoFirst off, not everyone likes those technologies for a variety of reasons--and solving a front-end solution a an alternative is valid. Outside Elm, PureScript, BuckleScript, and ReasonML all work fine with JavaScript libraries and have React interop/wrapper libraries already. I may dislike it, JSX is supported out of the box with ReasonML. I think some pain with JS interop could be worth the trade-off for either better types, managed IO, no null by default, immutablility by default, no option for any, exhaustivity, and the list go on--not just as a linter feature or a config option but built into the language.