Go 2 generics in 5 minutes

Two generic gophers
Two generic gophers. Photo by Lukáš Vaňátko on Unsplash

The inclusion or not of generics in the Go language has been a long-standing discussion and cause of drama since the first appearance of the language in 2009. Rivers of ink have been poured in long discussions about if generics are good or bad, and if the language needs to support them or not. Up to this moment, the Go team has decided to leave generics outside the language.

Software engineer at Booking.com. I write about tech, mostly *nix, JS & Go. Also life stuff, learning languages and hobbies. https://threkk.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Static Libraries in C: What they are and how to use them

Keycloak integration: Part 1: Nginx and Keycloak(proxy) deployment

Control Flow Variations in C Langauge

Automate Player Input with Unity Test Runner and NSubstitute

How to choose the most reliable Tezos baker for delegation on Tezos-nodes.com

Customising istio access logs

Too Many Dollars, Where Are The Markets Headed For The Second Half Of 2021?

What is AWS EKS?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alberto de Murga

Alberto de Murga

Software engineer at Booking.com. I write about tech, mostly *nix, JS & Go. Also life stuff, learning languages and hobbies. https://threkk.com

More from Medium

Introduction to Go -Part 1

Go logo

Go Lang Tutorial: Data Types

Data Types

Functions in GO