8 ms·
It is a pain to update a deep state in Haskell. C++: game.level.unit[10].position += 5; Haskell: way too much code here (unless you use lenses of course but t
by deterministic 1y ago
It is a pain to update a deep state in Haskell.
C++: game.level.unit[10].position += 5;
Haskell: way too much code here (unless you use lenses of course but then you are effectively turning Haskell into an imperative language).
- tome 1y agoWhat's wrong with that? Haskell is, after all, the "world's finest imperative language". https://www.microsoft.com/en-us/research/wp-content/uploads/2016/07/mark.pdf https://www.microsoft.com/en-us/research/wp-content/uploads/...