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

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • hashmap

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

  • 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

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • 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