Re:The Ergonomics of Type Checking (2016)
by bitwalker on Saturday October 28, 2017 @03:22PM
(#15576385)
That's not always true, rank-1 polymorphic functions (i.e. functions polymorphic in their argument) don't usually require type annotations. Higher-rank polymorphic functions though do generally require them, because without the annotations type inference is undecidable in the general case for such functions. For example:
This function creates a pair for any two types, and doesn't require any annotations.
[ Parent
| on HN ]
There are no comments on this comment yet.