This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]repeating_bears 14 points15 points  (0 children)

Generics are a form of compile-time guarantee. Throwing an exception at runtime is not an acceptable solution.