News for hackers. Stuff that matters.
Re:Go 2017 Survey Results by kjksf on Monday February 26, 2018 @03:34PM (#16468741)
For me the big takeaway is: generics are pretty much guaranteed to happen within a year or two.

> When asked about the biggest challenges to their own personal use of Go, users clearly conveyed that lack of dependency management and lack of generics were their two biggest issues, consistent with 2016. In 2017 we laid a foundation to be able to address these issues

> These two issues will continue to be a major focus of the project through 2018

Re:Go 2017 Survey Results by deckarep on Monday February 26, 2018 @03:41PM (#16468800)
That’s a bold statement...I’m not holding my breath. We still haven’t seen a solid proposal and the work required would likely be even more monumental after the fact.
Re:Go 2017 Survey Results by seanmcdirmid on Monday February 26, 2018 @05:05PM (#16469404)
Generics are well understood ATM. Once they decide on something, I don't think the work required would be monumental, unless they try something crazy.
Re:Go 2017 Survey Results by skybrian on Monday February 26, 2018 @05:11PM (#16469442)
Judging by package management, I wouldn't be surprised if it took another five years to figure out a plan and they did something controversially different from everyone else.

Which isn't a bad thing, necessarily.

Re:Go 2017 Survey Results by xzi00s09f8098fd on Tuesday February 27, 2018 @04:10PM (#16477925)
Not sure what you mean by this.

rsc has recently blogged in much detail about the package management situation, basing his work on existing solutions. He seems to specially eye rust's cargo. The blogs have been on HN several times.

https://news.ycombinator.com/item?id=16421966 https://news.ycombinator.com/item?id=16434973

Re:Go 2017 Survey Results by icholy on Monday February 26, 2018 @04:58PM (#16469340)
There have been a bunch.
Re:Go 2017 Survey Results by pjmlp on Monday February 26, 2018 @03:36PM (#16468754)
Until I see an actual roadmap for it, I won't be expecting much out of it, given the usual reaction when they get discussed at gonuts.
Re:Go 2017 Survey Results by peterevans on Monday February 26, 2018 @07:46PM (#16470281)
I recall reading something from some of the language developers who had indicated that their worry with generics was whether they could do it right. I inferred that to mean, whether they could do it in a way that felt as simple as the rest of the language does.

I would guess generics, when it lands, would look syntactically similar to the way channel type declarations look; you can have "chan int", so perhaps you would have "vector int". That feels the most intuitive and Go-ish to me. Channels require special syntax to work with, but with generics, I imagine you'd want to make use of interfaces.

I can see a bunch of ways of doing it—but none I could guarantee would end up in the finished product! But I do think generics land at some point. The unfortunate thing is there's a sense going around that Go doesn't have generics because the language authors somehow know better than everyone else; if anything, I think they have an abundance of caution that some other language developers have lacked.