Come on, Java is your only reference for generic programming? There are enough statically compiled languages with generics out there like Haskell, Rust or even C++. So it seems to be doable.
Of course everybody agrees with that. But Go is an open source project, and talk is cheap. We don't disagree with you, we just want you to propose how to do it then. Every new feature in Go needs a design document that answers the questions we all have about it. We are all basically sure it must be possible, but how to do it in the spirit of Go is a very hard question, and the very reason it didn't get into Go1 in the first place.
I will not reinvent the wheel. For the purpose of go, I think C++ like templates are the way to go. Just Duck Typing. If it is possible for interfaces it most certainly is for templates. The tools for code generation are already there. I don't see how it is difficult to do in the "spirit of go".
@@LaPingvino It seems that many have just completely missed the point of what Go is about. Quoting John Backus' 1977 Turing Award Lecture: Programming languages appear to be in trouble. Each successive language incorporates, with a little cleaning up, all the features of its predecessors plus a few more. (snip) Each new language claims new and fashionable features, such as strong typing or structured control statements, but the plain fact is that few languages make programming sufficiently cheaper or more reliable to justify the cost of producing and learning to use them. Since large increases in size bring only small increases in power, smaller, more elegant languages such as Pascal continue to be popular. (end quote) To me it seems that this is pretty much what the creators of Go had in mind too.
@@pohjoisenvanhusI think as well. In fact, Robert Griesmer was student of Niklas Wirth (the creator of Pascal and Oberon). Go tries to combine the best of C and Oberon: small languages with great powers.
i love this talk. Very useful. Found an error. It kind of takes away from showing actually how useful this is. PetOwner.Person.Name th-cam.com/video/5IKcPMJXkKs/w-d-xo.htmlm46s PetOwner.Name th-cam.com/video/5IKcPMJXkKs/w-d-xo.htmlm22s PetOwner.Name th-cam.com/video/5IKcPMJXkKs/w-d-xo.htmlm18s
Is it that hard to apply syntax highlighting if your talk is 90% code slides?
Cool
Closures and objects are equivalent
What's the BGM? I like it :-)
Come on, Java is your only reference for generic programming? There are enough statically compiled languages with generics out there like Haskell, Rust or even C++. So it seems to be doable.
Of course everybody agrees with that. But Go is an open source project, and talk is cheap. We don't disagree with you, we just want you to propose how to do it then. Every new feature in Go needs a design document that answers the questions we all have about it. We are all basically sure it must be possible, but how to do it in the spirit of Go is a very hard question, and the very reason it didn't get into Go1 in the first place.
I will not reinvent the wheel. For the purpose of go, I think C++ like templates are the way to go. Just Duck Typing. If it is possible for interfaces it most certainly is for templates. The tools for code generation are already there. I don't see how it is difficult to do in the "spirit of go".
@@LaPingvino It seems that many have just completely missed the point of what Go is about.
Quoting John Backus' 1977 Turing Award Lecture:
Programming languages appear to be in trouble.
Each successive language incorporates, with a little
cleaning up, all the features of its predecessors plus a few
more. (snip) Each new language claims new and
fashionable features, such as strong typing or structured
control statements, but the plain fact is that few languages
make programming sufficiently cheaper or more
reliable to justify the cost of producing and learning to
use them.
Since large increases in size bring only small increases
in power, smaller, more elegant languages such as Pascal
continue to be popular. (end quote)
To me it seems that this is pretty much what the creators of Go had in mind too.
@@pohjoisenvanhusI think as well. In fact, Robert Griesmer was student of Niklas Wirth (the creator of Pascal and Oberon). Go tries to combine the best of C and Oberon: small languages with great powers.
I like his approach.
wow,wonderful
i love this talk. Very useful. Found an error. It kind of takes away from showing actually how useful this is.
PetOwner.Person.Name
th-cam.com/video/5IKcPMJXkKs/w-d-xo.htmlm46s
PetOwner.Name
th-cam.com/video/5IKcPMJXkKs/w-d-xo.htmlm22s
PetOwner.Name
th-cam.com/video/5IKcPMJXkKs/w-d-xo.htmlm18s
Programming pattern should never become part of any language definition (!) even not part of basic libraries.
pure bullshit and horrible and dirty coding