Closed godofdream closed 1 year ago
Since generics are possible since ~1.51 we can replace the try_get_value macro with a generic. To not change the speed of the implementation try_get_value is inlined.
I left the macro inplace as deprecated, so we don't introduce a breaking change.
I think, let's keep it as is for now and we can change how we get variables for v2 (maybe axum like dependency injection?).
Since generics are possible since ~1.51 we can replace the try_get_value macro with a generic. To not change the speed of the implementation try_get_value is inlined.
I left the macro inplace as deprecated, so we don't introduce a breaking change.