Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> This is called "constrained parametric polymorphism"

The more common terminology is ad-hoc polymorphism AFAIK.



ad-hoc polymorphism is more general. Constrained/Bounded parametric polymorphism is a controlled subset of violations of parametric polymorphism.


eh, that might be a bit of a stretch. I like my peanut-butter and jelly separate, thank you.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: