3 ms·
You can do dependency injection with dynamic binding. See another post in this thread: https://news.ycombinator.com/item?id=32085346 https://news.ycombinator.co
by sparkie 4y ago
You can do dependency injection with dynamic binding. See another post in this thread: https://news.ycombinator.com/item?id=32085346 https://news.ycombinator.com/item?id=32085346
An approach to do it statically is with implicit parameters. Scala has them, for example.