|
|
|
|
|
by CharlieDigital
239 days ago
|
|
Agree with zdragnar; this is not traditional DI which is generally focused on injecting objects. The difference between the two is that when you inject an object, the receiving side must know a potentially large surface area of the object's behavior. When injecting a function, now the receiving side only needs to know the inputs and outputs of the singular function. This subtlety is what makes this approach more powerful. |
|