Hacker News new | past | comments | ask | show | jobs | submit login

Dependent types can make type constructors generic over _values_ (instead of only types). Refinement types keep the separation between types and values, but they let you wrap an existing type to enforce extra constraints or semantics. Another example of refinement are pattern types where you can attach a match pattern that is enforced to pass.





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

Search: