r/purescript • u/pto1 • Apr 21 '16
purescript-sigment: a simple game-engine/ui library
https://github.com/ptol/purescript-sigment
Any feedback would be appreciated
10
Upvotes
r/purescript • u/pto1 • Apr 21 '16
https://github.com/ptol/purescript-sigment
Any feedback would be appreciated
View all comments
Show parent comment
4
u/[deleted] Apr 26 '16
I assume you mean compared to elm. That probably depends on whether or not you think FRP (as conceived by elm) is a good fit for games or not. If you do, then the line might tip slightly toward Elm as it's baked into the language (though PureScript does have the signals library). If you don't, then I'd say PureScript is the better candidate, as it doesn't force you into a paradigm (other than functional, but you likely decided you wanted that when you picked Elm or PureScript to begin with).
On FFI, judge for yourself:
Personally, I prefer PureScript's FFI, as I can just write plain JavaScript. I don't have to keep yet another API in my head, where as in Elm, I have to remember
subscribe,send, etc. I suspect that some of this overhead is necessary to map cleanly to the FRP approach, in which case, having gotten used to FRP, the approach may not seem as inconvenient as I led onto earlier.The only real caveat for PureScript's FFI might be having to remember to write curried functions, but even then, using the purescript-functions library overcomes that limitation if you really find it distracting.