4 ms·
I'm sorry but if I read > most modern apps rely on some form of dependency injection then plain parameter passing is not what I'm thinking of. Especially not
by dminik 1y ago
I'm sorry but if I read
> most modern apps rely on some form of dependency injection
then plain parameter passing is not what I'm thinking of. Especially not manually doing that to hundreds or thousands of calls.
- philwelch 1y agoMost forms of dependency injection are abstractions over parameter passing. If you find yourself passing the same parameters into many different function calls there are ways of abstracting that, even in Zig. It’s not going to look like Spring and if that’s a dealbreaker for you, just use Spring, it’s a free country.