If you think generics have to be complicated, study OCaml’s generics. In particular, check out how hash tables and binary trees work without having to deal with typeclasses. I can hardly think of a language that gets “worse is better” better.
-
-
Replying to @pcwalton @marcelloseri
Equality in OCaml is messy. I think I would prefer Hashtbl to be a functor over the key type and to make equality explicit.
1 reply 0 retweets 3 likes
Replying to @huund @marcelloseri
I agree it’s messy, but it’s so easy to use, and that’s important.
2:31 PM - 7 May 2018
from South Beach, San Francisco
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.