by Ace17 · 9y ago · 0 comments
This is simply wrong.
You can do dependency injection without a container (using factories, or link-time polymorphism).
Dependency inversion is a lot more general:
Depending on a header file (interface) instead of a specific implementation already is a kind of dependency inversion.
Having a language-independent IR in a compiler also counts as dependency inversion (compared to an implementation where the frontend calls the backend): it prevents dependencies between the frontend and the backend (whose reasons to change generally aren't correlated), by making everybody depend on the IR instead.
In this case the function signature corresponds to the class interface, and partial application corresponds with binding the injected dependencies passed via the constructor (using a factory, or dependency injection container etc).