Ask HN: Was it worth it for Go to add generics

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • hashmap

    A Golang lock-free thread-safe HashMap optimized for fastest read access.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • generics

    There used to be a troll repo on Facebook's GitHub org about Go generics, which is now archived, so ... maybe?

    https://github.com/facebookarchive/generics

  • go

    The Go programming language

    * Libraries in general being “Just another git repo”, many haven’t been updated to use Go modules. Because Go doesn’t have a good central repository for go libraries, I don’t have good numbers on this.

    [1] https://github.com/golang/go/issues/48918

  • go-generics-the-hard-way

    A hands-on approach to getting started with Go generics.

    You don't actually have to instantiate the type for a receiver function (i.e., method). There's too much missing from your code for me to understand which direction you're going but you'll likely have to use a constraint for structs which is explained here: https://github.com/akutz/go-generics-the-hard-way/blob/main/...

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

Did you konow that Go is
the 4th most popular programming language
based on number of metions?