3 ms·
> If games were so much easier to write that way we would see tons of them, especially among the better games, but we don't. Functional programming only starte
by naasking 4y ago
> If games were so much easier to write that way we would see tons of them, especially among the better games, but we don't.
Functional programming only started going mainstream a few years ago. Give it time, it will make an impact. You can already see the influence of functional reactive programming in UI frameworks like React, where the screen state is a pure function of the program state. That's exactly what games have been doing for years, ie. rendering every from based on program state, only now we have a purely functional model of how this works.
Some of the "purely functional" aspects will be optimized/compiled away at various layers, but the programmer would still be able to work with the high-level model without attending to those details.