News for hackers. Stuff that matters.
Re:Go 1.17 Release Candidate 1 by Zababa on Tuesday July 13, 2021 @06:49PM (#27827199)
> As much as I'd like to use a pragmatic language like golang, I can't live without generics (many folks feel the same way.) Feels like I'm better off learning Rust. Go's loss is Rust's gain.

You can usually have "generics" by way of code generation, or losing type safety. Both aren't perfect but they still work. I wonder, what do you use generics for? Maybe Go isn't suited for that type of work in general.

> Feels like I'm better off learning Rust. Go's loss is Rust's gain.

Or just Java, Go isn't just competing with Rust. Again, that will depend on your problem space.

Re:Go 1.17 Release Candidate 1 by pjmlp on Wednesday July 14, 2021 @02:46AM (#27830355)
For those of us that believe in systems programming languages with GC, Go is indeed competing with Rust, alongside Nim, D, Swift, C#

https://tinygo.org/

https://www.f-secure.com/en/consulting/foundry/usb-armory

Naturally Rust remains an option for the use cases where GC, for whatever technical reason, is indeed not possible.

Re:Go 1.17 Release Candidate 1 by maccard on Tuesday July 13, 2021 @07:22PM (#27827435)
> I wonder, what do you use generics for?

Check if an element is contained in a slice is the textbook example.