Hacker News new | ask | show | jobs
by mexicocitinluez 356 days ago
You can constrain a generic, so no.

Generics don't mean "any type", they mean "type argument". As such, you can say "only type arguments that implement X" or similar.