golang-china / go2-book Goto Github PK
View Code? Open in Web Editor NEW:books: 《Go2编程指南》开源图书,重点讲解Go2新特性,以及Go1教程中较少涉及的特性
Home Page: https://golang-china.github.io/go2-book
:books: 《Go2编程指南》开源图书,重点讲解Go2新特性,以及Go1教程中较少涉及的特性
Home Page: https://golang-china.github.io/go2-book
😅,这是要抢占市场呀,👍
。。
https://github.com/chai2010/go2-book/blob/master/ch1/ch1-1.md
而Go语言的接口是采用隐式的转义,因此可能有人会决定这两种写法根本没有什么意义!
"决定"应该是"觉得".
不知道作者是否看过这个提案?
https://github.com/golang/proposal/blob/master/design/28221-go2-transitions.md
按照这个提案,泛型和错误处理等特性都会渐进地引入,例如 go2 草案里的 error values,已经合并入主线了(除了需要泛型的部分),无意外的话1.13就会包含这个 error values 草案的内容:
golang/go@37f8481#diff-c93f2f0db26f58ae432e8d8f1dc9bd73
golang/go@62f5e81#diff-c93f2f0db26f58ae432e8d8f1dc9bd73
所以并不会有一个"2.0"的版本然后包括所有go2草案的实现,而是现在就已经开始做了。go1和go2并不是界限分明的,所以“go1退出历史”这种说法是不准确的。
Go 2 transition 提案的最后一段说得很明白:
If the above process works as planned, then in an important sense there never will be a Go 2. Or, to put it a different way, we will slowly transition to new language and library features.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.