by axilmar · 5y ago · 0 comments
What I really find annoying is when I have to update state. I always have to write tones of functions in order to re-synthesize the data after the smallest change, and the deeper the data model tree is the more functions are needed.
Did I ever have any benefit from using the IO monad or the state monad? I don't know..it seems to be the number of bugs between my non-IO code and my IO code is roughly the same.
Perhaps it shines on a collaborative level...I don't know, I never had the chance of writing Haskell code with other people.
Yes, and purity is also for your collaborators (including your future self) who didn't write the code so don't understand it as well as you do.