Hacker News new | ask | show | jobs
by capableweb 1701 days ago
Why can't you just do DI the same way you do it in JS? You can pass Objects as parameters to functions and that's all you need.
1 comments

You are right, but I was learning they way "it is done" at the time.