3 ms·
Monads can be used to encapsulate state, they are used for other things. You can use objects to encapsulate state, or you can use another style of data abstract
by seanmcdirmid 14y ago
Monads can be used to encapsulate state, they are used for other things. You can use objects to encapsulate state, or you can use another style of data abstraction, whatever floats your boat. OOP has no unique capabilities, you just get to design your programs around objects, which is good enough for me. Its all about design.