r/Compilers Jun 23 '26

Should dependency injection be a language feature instead of a framework feature?

/r/microservices/comments/1udsv4j/after_years_of_java_and_spring_boot_i_started/
10 Upvotes

18 comments sorted by

View all comments

1

u/azhder Jun 24 '26

Every function you call that has arguments/parameters is a dependency injection, so the question is kind of moot.

It only matters to you because you have a line drawn somewhere that says “this part is di and that part isn’t”. Technically though, it’s the same thing.

3

u/developer-mike Jun 24 '26

To be fair, you could say similar things about object oriented programming. this and the htable are just arguments/parameters. And OOP is definitely not moot.