-
Notifications
You must be signed in to change notification settings - Fork 17.7k
Go2
Brad Fitzpatrick edited this page Aug 28, 2018
·
8 revisions
This page tracks the status of "Go 2".
We are currently exploring potential designs for improved error handling, error values, and generics:
- Blog post: https://blog.golang.org/go2draft
- Draft designs and problem overviews: https://go.googlesource.com/proposal/+/master/design/go2draft.md
- GopherCon 2017: Russ Cox - The Future of Go
- GopherCon Russia 2018: Brad Fitzpatrick - Go: Looking back and looking forward (Go2 stuff is at about 20 minutes in)
From talk above:
- "maybe three major changes"
- plus minor housekeep tasks
- TBD
Examples of major changes:
Examples of housekeeping:
- Open Go2Cleanup bugs (please don't add this label to things without discussion)
We do not want to break the ecosystem. Go 1 and Go 2 code must be able to interoperate in programs with ease.
The standard library would probably be versioned and permit out-of-cycle updates, but be included with Go releases. Maybe "encoding/foo" become shorthand for "golang.org/x/std/encoding/foo". TBD. Some package would probably get v2 major versions, but the v1 versions would be minimally maintained, at least for security.
TBD