3 ms·
Ugh, Dependency Injection Framework. This will not be popular. The blogpost itself is already shown what’s wrong with pavex. Adding so much concept and extra c
by didip 4y ago
Ugh, Dependency Injection Framework. This will not be popular.
The blogpost itself is already shown what’s wrong with pavex. Adding so much concept and extra code just to be able to instantiate something. $1 abstraction cost for $0.05 problem.
- aliqot 4y agorust ecosystem is very JS-like in this regard, having spent the last few years working with it.
- deleted 4y ago[deleted]
- 0x457 4y agoYeah, so many more leaky abstractions that will be hard to debug. Not even sure why? You're not saving anytime by doing it this way. Axum already has good DI that is somewhat ergonomic in rust (well, I hate how extensions aren't checked at compile time like in warp...) I think the solution to "rust doesn't have DI like C# and Java" isn't trying to make DI like C# and Java (you won't be able without very heavy runtime cost), but make a DI that works well in rust and re-adjust yourself.