Paul Woitaschek11/02/2018, 3:56 PM
several times. Now I need a class
in the last function
. How do I get it there? When using a class for the whole logic, I just inject it through the constructor. The issue here is that
doesn't know anything about
so I would need to pass-through that class and everything else it needs. Maybe the better question is: How do I get / pass dependencies I don't want the caller to bother about in functional programming?
louiscad11/02/2018, 4:04 PM
class if I had your use case