Better HN
topnewbestaskshowjobs
Log inSign up

mernen

5 karma · joined Apr 21, 2022 (4y ago) · 1 submissions

Submissions

comment 4y ago · link · parent

Yes, Rust traits are Haskell typeclasses. What he's saying has no parallel in most other languages are the `impl` blocks (which can be used to both define arbitrary methods and implement traits, the latter being directly analogous to Haskell's `instance` definitions).