Live data from Hacker News

Go 2, here we come

blog.golang.org

11–20 of 534 posts

Re: Go 2, here we come

#11
post #5

Go 2 Considered Harmful: https://homepages.cwi.nl/~storm/teaching/reader/Dijkstra68.p...

You got me. Genuinely thought it was gonna be a critique.

So what is it? I'm on my phone and don't feel like downloadig a random PDF just for curiosity...

Re: Go 2, here we come

#12
post #6

I'll be very sad if this goes the way of Perl 6

It won't. It's an explicit requirement that it will not. Or even a Python 3. I had a slide saying as such in an earlier presentation:

https://docs.google.com/presentation/d/1DmyTABhGLvN0m2uHktvk... (slide 140)

Ian had a good talk & doc about this too recently:

https://github.com/golang/proposal/blob/master/design/28221-...

https://www.youtube.com/watch?v=LqKOY_pH8u0

Re: Go 2, here we come

#14
post #11
post #5

Earlier quoted context omitted.

You got me. Genuinely thought it was gonna be a critique.

So what is it? I'm on my phone and don't feel like downloadig a random PDF just for curiosity...

It's a pun. "Go 2" -> "Go To". Dijkstra coined "considered harmful" with the paper (letter) on "Go To statement considered harmful".

Re: Go 2, here we come

#18

I hope they keep the changes reasonable and do not introduce any breaking changes. I like the language as it is now and I'm very productive in it.

Well for the first round they are looking at: 1. Allowing generalized unicode identifiers. That is hardly likely to break anything except possibly some crazy edge cases that dont happen in real code. 2. Binary integer literals. (unlikely to break things) 3. allowing seperating groups of digits in a number with _ like 1_000_000 (unlikely to break anything) 4. Permit signed integers as shift counts (no need to cast ant int to a uint to use it in a shift expression. This won't break any existing code).

So at least this first round is quite unlikely to break anything in real use.

Re: Go 2, here we come

#20

Non-go user here. So what are the most desired fratures from Go 2 in the community? I remember something about generics not being supported.

Helpful link from the text: https://github.com/golang/go/issues?q=is%3Aissue+is%3Aopen+l...

These are Go2 proposal PRs, sorted by upvotes.

Post reply on HN