Skip to content

Comment on Dependency Injection for Pythonparent

Comments

"At its core DI is basically constructing instances of objects with the help of other objects."

Why would you wan t that in python? Doesn't python have higher order functions?

Exactly, in a dynamic language with first-class functions you don't need to create object factories just to pass around static methods between scopes.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.