Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> you know that it only changes the state of this player, and nothing else.

This gets ugly when the state of every actor can potentially affect the state of every other actor, though. This is pretty common in games.

That's the main point the linked article is making.



Yes, and it is a weak point.

My point, instead, was that FP does not break down when things get ugly; on the contrary, it gives much stronger guarantees on correctness. Of course, it takes effort to express the problem in the more restrictive functional paradigm.


Yeah. I fail to see how scads of global data is less ugly.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: