Just implement generics already. Sheesh. https://github.com/google/gvisor/blob/master/tools/go_generics/generics.go …
-
-
Does "extremely simple" imply monomorphization as an impl strategy? Maybe I'm just tired of horribly slow C++ compilers, but I kinda believe monomorphized generics are not a good default. I'd personally prefer something like Swift's approach (which is complicated).
-
Also, I'm fairly sure "extremely simple" is discounting Go-specific difficulties, e.g. downcasting between interfaces, implicitly implemented interfaces, the difficult question of generic interfaces, and a few others.
- 2 more replies
New conversation -
-
-
but many people (myself included) don't want to program in plain SML. OCaml maybe, but that's not simple anymore.
-
I didn’t say you should program in SML or OCaml. I’m just saying that OCaml-style generics would be an extremely good fit for Go. If I had designed Go, I would probably have chosen generics over interfaces.
End of conversation
New conversation -
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.