|
|
|
|
|
by lmm
2989 days ago
|
|
> AOP is about cross cutting concerns and being able easily insert similar functionalities in unrelated areas of the code. Yes, monad transformers exist to let you do that. They're the thing that makes it possible to insert an effect in a code area that's using other, unrelated effects. |
|
Cross cutting concerns allow you to insert a certain line of code in "file 1 at line 223 and file 2 at line 400" because these lines match a certain type safe regexp.
Monad transformers accomplish nothing remotely close to that.