mernen
Re:Rust from 0 to 80% for JavaScript Developers
on Saturday April 30, 2022 @11:21PM (#31221886)
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).