News for hackers. Stuff that matters.
Re:Ask HN: Go programming language is over ten years old. Wh... by sabellito on Sunday October 25, 2020 @12:55PM (#24887706)
Speaking strictly about the language, and not the platform, I'm skeptical about the lack of more modern core library and language features like immutability, pattern matching, and records. They spent almost 10 years saying "we don't need generics", but now are implementing it

Also, the dependency management.

Re:Ask HN: Go programming language is over ten years old. Wh... by Mr_T_ on Sunday October 25, 2020 @01:38PM (#24888167)
> They spent almost 10 years saying "we don't need generics", but now are implementing it

You're making things up. Not a single member of the Go team ever said "we don't need generics". In fact, the FAQ stated from day one that they "continue to think about it", and that "Generics may well be added at some point".

Re:Ask HN: Go programming language is over ten years old. Wh... by vram22 on Sunday October 25, 2020 @02:06PM (#24888421)
Yes. IIRC, Rob Pike or someone else on the Go team even said something like "it's hard, so we are taking our time about it, may implement it later". Edit: see [1] below.

Also googled and found this:

http://lambda-the-ultimate.org/node/4554

which includes this section:

Go might have generics in future

with this text:

The Go FAQ recognizes the issue and says that generics may be added at some point... http://golang.org/doc/go_faq.html#generics

Considering how Java generics turned out I am fine with the Go team taking the time to think about a proper design for generics in Go :-)

By ted stockwell at Tue, 2012-06-26 15:03

[1] The golang.org link above about generics also says this:

We haven't yet found a design that gives value proportionate to the complexity, although we continue to think about it.

Re:Ask HN: Go programming language is over ten years old. Wh... by tsimionescu on Sunday October 25, 2020 @02:40PM (#24888719)
They've always also said "show us some compelling use cases", as if those still need to be shown ~15 years after after every other language except C got them.
Re:Ask HN: Go programming language is over ten years old. Wh... by cma on Sunday October 25, 2020 @03:52PM (#24889350)
C has the preprocessor at least, reducing the need for them.
Re:Ask HN: Go programming language is over ten years old. Wh... by sabellito on Monday October 26, 2020 @10:05AM (#24896267)
Ah, I stand corrected.
Re:Ask HN: Go programming language is over ten years old. Wh... by djeiasbsbo on Friday November 06, 2020 @10:33AM (#25008312)
Dependency management is better now with Go Modules. Not as great as e.g. with cargo in the Rust ecosystem but definitely an improvement.

https://blog.golang.org/using-go-modules