2 ms·
> Right, I think functional programmers like to trivialize the actual usefulness and value of "dependency injection" as a standalone concept. Not sure? Eg Has
by eru 5y ago
> Right, I think functional programmers like to trivialize the actual usefulness and value of "dependency injection" as a standalone concept.
Not sure? Eg Haskell typeclasses (and that includes monads!) could mostly be replaced by just passing arguments around (basically a bit like a vtable in C++). But it would make the ergonomics almost unusable.
Of course, many real world functional programmers (or wanabe functional programmers) like to make fun of OOP.