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

Even when you can't have a _proof_ of associativity in the type, it's perfectly reasonable to document the associativity requirement in types -- e.g. the Monoid typeclass in Haskell.


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

Search: