3 ms·
We have PureScript which is statically typed, pure functional language compiling to JS, can't it be adopted for React Native development somehow?
by formula_ninguna 10y ago
We have PureScript which is statically typed, pure functional language compiling to JS, can't it be adopted for React Native development somehow?
- bbcbasic 10y agoYou really need to check out Elm. It's an ML-like language with built in functional reactive framework similar to React, but built to work naturally with the language rather than requiring the FFI binding you'd need if you use Purescript.
- pka 10y agoElm's type systems is really constrained compared to PureScript's. It's great for people coming from JavaScript, but not so much for those coming from Haskell. Also, you still need FFI in Elm. elm-lang/virtual-dom is basically just a wrapper around the native virtual-dom library. Also, afaik there's nothing like react native for virtual-dom.
- pka 10y agoYes, it can, although I can't say how usable those bindings are. [0] https://github.com/arthur-xavier/purescript-react-native https://github.com/arthur-xavier/purescript-react-native [1] https://github.com/hoodunit/purescript-react-native https://github.com/hoodunit/purescript-react-native