Test driving Go 2?

349 views
Skip to first unread message

Torsten Bronger

unread,
Jun 1, 2021, 12:39:49 PM6/1/21
to golan...@googlegroups.com
Hallöchen!

Is there already a possibility to give a WIP Go 2 compiler a test?
What is the best way to get informed for that? (This group, the
blog, …)

Tschö,
Torsten.

--
Torsten Bronger

Ian Lance Taylor

unread,
Jun 1, 2021, 12:54:05 PM6/1/21
to golang-nuts
On Tue, Jun 1, 2021 at 9:39 AM Torsten Bronger
<bro...@physik.rwth-aachen.de> wrote:
>
> Is there already a possibility to give a WIP Go 2 compiler a test?
> What is the best way to get informed for that? (This group, the
> blog, …)

There are no plans for anything called Go 2.

Perhaps you mean Go with generics support? That is under very active
development. You can try using the dev.typeparams branch and
compiling with -gcflags=-G=3. But please do not report bugs against
that branch unless you are very closely following the active
development. The branch is not expected to work today and bug reports
will be distractions that will not contribute to improving the code.
Thanks.

The best place to be informed about future work on Go is here and
golang-dev and golang-announce.

Ian

Brian Candler

unread,
Jun 1, 2021, 1:10:33 PM6/1/21
to golang-nuts
There is also https://go2goplay.golang.org/ (which is perhaps misleadingly named, given that there are no plans for Go 2)

Torsten Bronger

unread,
Jun 1, 2021, 2:51:52 PM6/1/21
to golan...@googlegroups.com
Hallöchen!

Ian Lance Taylor writes:

> On Tue, Jun 1, 2021 at 9:39 AM Torsten Bronger
> <bro...@physik.rwth-aachen.de> wrote:
>
>> Is there already a possibility to give a WIP Go 2 compiler a
>> test? What is the best way to get informed for that? (This
>> group, the blog, …)
>
> There are no plans for anything called Go 2.

Ah, sorry for the confusion.

> Perhaps you mean Go with generics support?

Actually I am more interested in developments on the error handling
front. I wonder whether
https://go.googlesource.com/proposal/+/master/design/go2draft-error-handling-overview.md
has been cast into code already.

Ian Lance Taylor

unread,
Jun 1, 2021, 3:43:15 PM6/1/21
to golang-nuts
On Tue, Jun 1, 2021 at 11:51 AM Torsten Bronger
<bro...@physik.rwth-aachen.de> wrote:
>
> Actually I am more interested in developments on the error handling
> front. I wonder whether
> https://go.googlesource.com/proposal/+/master/design/go2draft-error-handling-overview.md
> has been cast into code already.

It has not. The ideas in that draft have not been carried forward. I
am not aware of any currently active plans to change Go's error
handling behavior. See https://golang.org/issue/40432.

Ian
Reply all
Reply to author
Forward
0 new messages