3 ms·
> But for simple games these are not that useful. Simple games seem very well suited for the imperative, global state model. Could you elaborate? I think this
by the_af 10y ago
> But for simple games these are not that useful. Simple games seem very well suited for the imperative, global state model.
Could you elaborate? I think this is one of those things we "know" which isn't necessarily so. Simple sprite-based games can be written using purely functional techniques (see: https://github.com/nikki-and-the-robots/nikki https://github.com/nikki-and-the-robots/nikki). It's just that it's not common to use FP languages for this.
- ceronman 10y agoYeah, I know you can develop games in a purely functional fashion. My point what is the advantage of doing so, given that most resources are developed for an imperative way. I think the interactive approach taken by Elm is a very good advantage of FP for games.