3 ms·
It would most likely be in the IO monad since IO would be happening. As for whether monads would help your code (and I still think they would) I'll need a larg
by codygman 12y ago
It would most likely be in the IO monad since IO would be happening.
As for whether monads would help your code (and I still think they would) I'll need a larger example. In a small example abstraction and reuse aren't really apparent.
If you can provide a larger example, we can find out who's right ;)
Alternatively I'll try to find a larger example if you can't or don't want to.
- AnimalMuppet 12y agoWell, I just made up this example, so feel free to embellish it... But as you do, remember the question. We're in an embedded system, with lots of situations where sequence matters, and lots of stored state. The question is, what do monads buy me in that environment?