|
|
|
|
|
by pcthrowaway
1246 days ago
|
|
> Go has computer-sciencey-correctness goals (hence all the kerfluffle over generics) I really don't understand this. The debate over generics had nothing to do with "computer sciencey correctness" goals, they had to do with ergonomics. Of course, from Ruby, the idea of typing your code is completely foreign, but imagine if a function only allowed one type of parameter, and if you wanted another you had to define it again with a different name. Basically like allowing flexible parameters makes function definitions more flexible, a lot like all the metaprogramming business in Ruby |
|
I don't understand this?
> I really don't understand [Go has computer-sciencey-correctness goals]
My impression (way back when, TBH when Go was first announced and discussed) was that the language creators had some Very Strong Ideas about how to do various things 'much more correctly', and/or to avoid specific pain-points they'd had in other languages, and that those things informed a lot of the decisions about Golang; in particular the module system, generics, and error handling.
I'm calling that "computer-sciencey-correctness goals", perhaps incorrectly, as I also got the impression their goals and methods were heavily informed by CS research into computer languages.