samedi 23 février 2019

Is overriding dependency prodivers considered bad style?

I am reimplementing something like Python Dependency Injector in D programming language. I want to build a pure dependency injection framework for D.

Is overriding of providers considered bad style? It seems that overriding of providers is clearly a nonlocal dependency and nonlocal dependencies are usually considered a bad style by OOP theoretics.

So should I or should I not implement overriding of providers in my pure dependency injection framework for D?

Aucun commentaire:

Enregistrer un commentaire