3 ms·
I've been thinking about using PureScript years ago as I've enjoyed the PureScript by Example book [0] and the language that seems like a cleaned-up version of
by Leace 7y ago
I've been thinking about using PureScript years ago as I've enjoyed the PureScript by Example book [0] and the language that seems like a cleaned-up version of Haskell.
I didn't like that the compiler is not written in PureScript (although there was a proof of concept [1]. Additionally, even though it compiles to JavaScript, the code that is generated is sub-optimal performance-wise [2].
Ultimately I used TypeScript and have been happy with that but still long for better FP language that generates lean code and can be used in a browser.
[0]: https://leanpub.com/purescript/read https://leanpub.com/purescript/read
[1]: https://github.com/purescript/purescript-in-purescript https://github.com/purescript/purescript-in-purescript
[2]: https://github.com/purescript/purescript/issues/2577 https://github.com/purescript/purescript/issues/2577
- huy-nguyen 7y agoI'm also concerned about PureScript's JS output so I looked into ReasonML and has been quite impressed. The type system is a bit less powerful (no type classes yet) but the JS output is very readable and maps almost line-to-line to ReasonML code.