Proposal: Generic Methods for Go has been accepted

The proposal for generic methods was accepted:

What do you all think? I’m cautiously optimistic. I’ve been build the Astra DB client for Go and this has ramifications for that project. For example on this “select from table” example I did something Mongo-ish:

table := db.Table(tableName)

// Find the book we inserted in TableInsertOne
var book Book
err := table.FindOne(ctx, filter.Eq("title", "The Great Gatsby")).Decode(&book)

BUT - if I had generic methods, I could do something more like:

table := db.Table[Book](tableName)

// Find the book we inserted in TableInsertOne
book, err := table.FindOne(ctx, filter.Eq("title", "The Great Gatsby"))
// And further interactions with db handle will be of type `Book`...

Anyway, I’ll wait to see how this plays out. But like I said - I am cautiously optimistic and can think of some real-world scenarios where I could use this.