News for hackers. Stuff that matters.
Re:How generics are implemented in Go 1.18 by pjmlp on Wednesday March 02, 2022 @03:59AM (#30525321)
Never used unsafe and raw pointers in C#? They exist since version 1.0.

Never used ArraySegments in C#? They exist since version 2.0

Abtracting over float/doubles is called generics.

Re:How generics are implemented in Go 1.18 by socialdemocrat on Wednesday March 02, 2022 @04:37AM (#30525520)
It is not the same thing at all if you care to compare the details. C# pointers come with a long list of caveats which does not apply in Go. They feel like a bolted on escape hatch rather than a real part of the language.
Re:How generics are implemented in Go 1.18 by pjmlp on Wednesday March 02, 2022 @04:49AM (#30525580)
Moving goal posts, so now instead of not existing, they come with caveats.