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

Are associated types type families? I'm not sure. They seem more similar to functional dependencies to me. But I'm only familiar with type families from Haskell so maybe I'm missing some broader context.




Yes they are type synonym families. And yes they are quite similar to functional dependencies because it is conceived as an alternative to functional dependencies but it expresses the programmer’s intent more clearly.



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

Search: