Re:Printf(“%s %s”, dependency, injection)
by eru on Wednesday October 20, 2021 @01:28AM
(#28927084)
> 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.
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.