Agreed! Too many people on both sides equate “generics” with “C++’s implementation of generics”. If I were designing Go, given the choice between interfaces and ML-style generics I would have chosen the latter.
Yes. OCaml has a few exceptions for convenience, like hashing and comparison (also debug printing of objects in an extension). Very much in keeping with how Go works.
-
-
It's not a part of the underlying type system tho, importantly, imo. They're just functions which are given by the runtime system with the type `'a . 'a -> 'a -> bool`
-
There's that syntax functional programmers seem to think liberal arts majors like me understand.

- 3 more replies
New conversation -
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.