5 ms·
Why would anyone write purescript when we have typescript?
by edem 6y ago
Why would anyone write purescript when we have typescript?
- nsonha 6y agoAs a gateway to haskell?
- azangru 6y agoWould you write client-side web apps in Haskell?
- shirogane86x 6y agoI mean, there are people who do, using GHCJS and something like Miso or Reflex.
- jamil7 6y agoWhy write in any other language when we have typescript? /s There is a world outside the JS/TS/Node ecosystem, pick up some of these other languages and it will answer your question.
- rkangel 6y agoI would phrase the question as "why would you write Typescript when we have Purescript (or ReasonML)"? Why would you choose to write a language who's type system is much less expressive than languages like Purescript? Why not have that expressive power and its ability to prevent some classes of bugs, and still have good interop with JS?
- e12e 6y agoI was actually thinking, why would you use purescript for react, when you could use reasonml? https://reasonml.github.io/reason-react/docs/en/components https://reasonml.github.io/reason-react/docs/en/components https://reasonml.github.io/reason-react/docs/en/usestate-event-value https://reasonml.github.io/reason-react/docs/en/usestate-eve... As far as I can tell the integration is cleaner and has better support from upstream? I guess it's not Haskell - but I really would be interested in why you would choose purescript for this use-case (personal preference is a fine reason, but I'd at least hope that preference goes beyond merely syntax?).
- rkangel 6y agoNo, I actually prefer Reason. I'm happy to argue the benefits of either. The differences between it and Purescript are much smaller than the differences between them and most things.
- tluyben2 6y agoThe reason for typescript is support and uptake; it 'feels' enough like C#/Java for many people to jump on. Purescript & ReasonML feel alien to most developers.