3 ms·
It seems like both projects have their own raisons d'être along with trade-offs. TS is pretty well-integrated with JS ecosystem and supported by a large player
by goblin89 7y ago
It seems like both projects have their own raisons d'être along with trade-offs.
TS is pretty well-integrated with JS ecosystem and supported by a large player, but has an imperfect type system; Reason is more “puristic” with pattern matching and all, but you have to keep your eyes peeled for impedance mismatch.
(The docs for Reason, or BuckleScript to be exact, have warnings like “If you come from JavaScript, a Reason object doesn't compile to a JS object” sprinkled here and there.)
I personally encountered the case you described a couple of times but generally using TS still saved me a lot of time I’d have wasted debugging, with minimal time spent on getting into the ecosystem.