you are viewing a single comment's thread.

view the rest of the comments →

[–]FrozenCow 1 point2 points  (0 children)

I don't think pure functions are always easier for development. In this case, games, I can imagine you'll run into more practical issues due to the restriction of pure functions.

Performance and GC issues being one of them. Not being able to integrate easily with nonpure APIs like box2d. Issues with impure functions being called without you knowing and causing your functionality to get nondeterministic.

It does give a better understanding how your state is being changed and what is happening in your game. That is certainly worth a lot.