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

> But those are distinct types with very different semantics: you can’t just say “it returns a function that you can call once or maybe a function you can call more than once. Shrug”.

Right, that's why I want parametricity i.e. HKT. String and Int are different types with very different semantics, you can't just say "it returns a String or maybe an Int, shrug", but it's very useful to be able to write generic code and datastructures (e.g. collections) that work for String and Int.



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

Search: