Hacker News new | past | comments | ask | show | jobs | submit login

You can do dependency injection with dynamic binding. See another post in this thread: https://news.ycombinator.com/item?id=32085346

An approach to do it statically is with implicit parameters. Scala has them, for example.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: