Comment by haiku2077
5 days ago
Context.Value's signature is Value(any) any - you have to use type conversion or reflection to determine the value's type at runtime, instead of a compile-time check.
5 days ago
Context.Value's signature is Value(any) any - you have to use type conversion or reflection to determine the value's type at runtime, instead of a compile-time check.
But I have methods such as MustRateLimiterFromContext(ctx) which returns the right type :)
By crashing your program at runtime if any wrong type is added!