akaJB
✅ How do I deal with generic covariance and collections types?
Can you verify if I'm I misunderstanding something? It seems to not compile:
https://dotnetfiddle.net/v9UvPa
8 replies
❔ Attempting to create a Result<T, E> type, running into issues with subclasses
In my defense it's late, but I'm having a hard time understanding how to implement a result type via contravariant/covariance. Would you have a real world example of these concepts in practice?
Fwiw I plan on looking at it in the morning with fresh eyes
9 replies