Re:Introduction to Aspect-Oriented Programming
by hcarvalhoalves on Saturday July 12, 2014 @11:58PM
(#8026595)
Could monadic types solve the same problem in codebases, by letting you compose "business" and "implementation" functions?
[ Parent
| on HN ]
Re:Introduction to Aspect-Oriented Programming
by saryant on Sunday July 13, 2014 @02:50AM
(#8026837)
That's the idea behind the Reader pattern: http://blog.originate.com/blog/2013/10/21/reader-monad-for-d...
Essentially, your business logic operations return a function of Implementation => Result, rather than just your Result, and you then call the function with whatever implementation you need at the edges of your application.