-
In C#, you have to do some repetitive typing in order to declare a generic type constraint:
It's much simpler in VB and Java; how about something like this, inspired by those languages:
|
Beta Was this translation helpful? Give feedback.
Answered by
alexrp
Oct 16, 2020
Replies: 1 comment 3 replies
-
Once you add in non-contrived names, multiple generic parameters and/or constraints, an inheritance list, and perhaps more class modifiers, the current syntax starts to make a lot more sense. Add those things to the Java/VB syntax and it becomes unwieldy fast. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
ekolis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Once you add in non-contrived names, multiple generic parameters and/or constraints, an inheritance list, and perhaps more class modifiers, the current syntax starts to make a lot more sense. Add those things to the Java/VB syntax and it becomes unwieldy fast.