3 ms·
> Of course, the solution is is some combination of: And as always in Haskell: more type trickery. Like lenses, which help with the splitting. Applicative fu
by eru 14y ago
> Of course, the solution is is some combination of:
And as always in Haskell: more type trickery. Like lenses, which help with the splitting. Applicative functors might help with "Have functions return a description of updates to the world-state [...]" for free in a sense similar to http://gergo.erdi.hu/blog/2012-12-01-static_analysis_with_applicatives/ http://gergo.erdi.hu/blog/2012-12-01-static_analysis_with_ap...
- dllthomas 14y agoLenses are awesome, and can help with pulling data out of a WorldState object and updating it thereafter. They do not do a thing about loss of information in the function signature.