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

> They are conceptually related concepts, but the language puts syntactic distance between the two, and I don't think it should.

Haskell's type classes are a bit like Rust's traits. Type classes are open by default, but optionally can be closed off.



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

Search: