4 ms·
Why does it sound so complicated when it is just a wrapper type that conforms to an interface?
by 1718627440 1y ago
Why does it sound so complicated when it is just a wrapper type that conforms to an interface?
- ww520 1y agoIt is what you described at high level. The devils are in the detail. People keep using words to describe the detail when code shows everything.
- yobbo 1y agoIt's a generalised typeclass for wrappers. It's not called "then" but "bind" and spelled (>>=), which doesn't exactly evoke useful associations for newcomers.
- immibis 1y agoBecause the interface has a few complicated rules associated with it. If you break them, the compiler may accept your code but it won't work with a lot of libraries that are supposed to work with any monad.