[Proposal] Operator Constraint on Generic Type #1532
-
Maybe consider adding contraints for operators and casts? Since operators cannot be added in an interface I cannot add 2 generic Variables together. Would be cool for a generic math library where we dont want a class for every single valuetype. where T : Primitive (int, byte, long, etc. so we know all interfaces the common number types have) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
-
#164 too, I think. |
Beta Was this translation helpful? Give feedback.
#164 too, I think.