Skip to main content
Question Protected by gnat
edited body
Source Link
candied_orange
  • 119.7k
  • 27
  • 233
  • 369

Many general programming languages are flexible enough to allow you to support dependency injection. Even without library or framework support. But even if a language is turingTuring complete enough to solve any programming problem, a language makes choices that impact what is easy and what is hard to do in them.

Is there any language that was specifically designed to make dependency injection easy, and conversely, make creating hidden dependencies hard?

Clarification:

Due to limitations of some languages (looking at you Java) many people regard assistance with wiring and construction as part of dependency injection. Here I only intend a language designed for DI to mean that dependency's are not easily hidden in side effects. Having a convention over configuration system as well would only be added gravy.

I'm not looking for a language recommendation. It's a historical question. Has any language author ever explicitly set out to do this?

Many general programming languages are flexible enough to allow you to support dependency injection. Even without library or framework support. But even if a language is turing complete enough to solve any programming problem, a language makes choices that impact what is easy and what is hard to do in them.

Is there any language that was specifically designed to make dependency injection easy, and conversely, make creating hidden dependencies hard?

Clarification:

Due to limitations of some languages (looking at you Java) many people regard assistance with wiring and construction as part of dependency injection. Here I only intend a language designed for DI to mean that dependency's are not easily hidden in side effects. Having a convention over configuration system as well would only be added gravy.

I'm not looking for a language recommendation. It's a historical question. Has any language author ever explicitly set out to do this?

Many general programming languages are flexible enough to allow you to support dependency injection. Even without library or framework support. But even if a language is Turing complete enough to solve any programming problem, a language makes choices that impact what is easy and what is hard to do in them.

Is there any language that was specifically designed to make dependency injection easy, and conversely, make creating hidden dependencies hard?

Clarification:

Due to limitations of some languages (looking at you Java) many people regard assistance with wiring and construction as part of dependency injection. Here I only intend a language designed for DI to mean that dependency's are not easily hidden in side effects. Having a convention over configuration system as well would only be added gravy.

I'm not looking for a language recommendation. It's a historical question. Has any language author ever explicitly set out to do this?

Tweeted twitter.com/StackProgrammer/status/737241149983850496
added 136 characters in body
Source Link
candied_orange
  • 119.7k
  • 27
  • 233
  • 369

Many general programming languages are flexible enough to allow you to support dependency injection. Even without library or framework support. But even if a language is turing complete enough to solve any programming problem, a language makes choices that impact what is easy and what is hard to do in them.

Is there any language that was specifically designed to make dependency injection easy, and conversely, make creating hidden dependencies hard?

Clarification:

Due to limitations of some languages (looking at you Java) many people regard assistance with wiring and construction as part of dependency injection. Here I only intend a language designed for DI to mean that dependency's are not easily hidden in side effects. Having a convention over configuration system as well would only be added gravy.

I'm not looking for a language recommendation. It's a historical question. Has any language author ever explicitly set out to do this?

Many general programming languages are flexible enough to allow you to support dependency injection. Even without library or framework support. But even if a language is turing complete enough to solve any programming problem, a language makes choices that impact what is easy and what is hard to do in them.

Is there any language that was specifically designed to make dependency injection easy, and conversely, make creating hidden dependencies hard?

Clarification:

Due to limitations of some languages (looking at you Java) many people regard assistance with wiring and construction as part of dependency injection. Here I only intend a language designed for DI to mean that dependency's are not easily hidden in side effects. Having a convention over configuration system as well would only be added gravy.

Many general programming languages are flexible enough to allow you to support dependency injection. Even without library or framework support. But even if a language is turing complete enough to solve any programming problem, a language makes choices that impact what is easy and what is hard to do in them.

Is there any language that was specifically designed to make dependency injection easy, and conversely, make creating hidden dependencies hard?

Clarification:

Due to limitations of some languages (looking at you Java) many people regard assistance with wiring and construction as part of dependency injection. Here I only intend a language designed for DI to mean that dependency's are not easily hidden in side effects. Having a convention over configuration system as well would only be added gravy.

I'm not looking for a language recommendation. It's a historical question. Has any language author ever explicitly set out to do this?

added 365 characters in body
Source Link
candied_orange
  • 119.7k
  • 27
  • 233
  • 369
Loading
added 1 character in body
Source Link
candied_orange
  • 119.7k
  • 27
  • 233
  • 369
Loading
Source Link
candied_orange
  • 119.7k
  • 27
  • 233
  • 369
Loading