Why did you learn OCaml?

Thanks for your reply. BTW do you miss traits/typeclasses in OCaml ? They seem to make code look so elegant/consistent in Haskell/Rust ! Some people actually don’t miss them – I’m wondering if that was your experience too.

1 Like

I learned Rust after knowing OCaml already, and I actually do miss traits. Not sure about the power of all typeclasses, since they aren’t implemented in Rust, and actually would be a nice addition in some scenarios, but those are pretty rare (there is GitHub - bodil/higher: Your favourite Haskell type classes for Rust but it’s pretty basic and should have been in Rust out of the box). Having traits in OCaml in some way or another would be a blast. Found traits 0.1.0 (latest) · OCaml Package but it’s still very far from what we have in Rust.

2 Likes