Compile-Time DI vs. Run-Time DI

Compile-Time DI vs. Run-Time DI

As the author of Dihedral, I often get asked: “Why should I use a compile-time dependency injection framework over a run-time DI framework?” This entire class of issues is not present when using compile-time DI. Components are built via a “component builder” that takes run-time information and provides it to injection code generated at compile-time.

Source: dimes.github.io