Hacker News new | ask | show | jobs
by yazzku 563 days ago
Interesting. Why doesn't the standard lib use that for the examples I listed?
1 comments

Because those types are not object types, so they don't have methods associated with them at all. This is unlike, say, CLR languages in which all types are object types.

There's been research on modular implicits for OCaml to solve this more generally, but that's not landing upstream anytime soon.