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

Sum types and typeclasses in Haskell (or enums and traits in Rust) are a much better fit than classes and the mess that is operator overloading.



Thanks! These definitely sound like what I should explore next in my journey.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: