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

Build a secure HUB VPC with Fortigate firewall and alibaba CEN-TR to secure enterprise cross VPCs…

How to Get Started Programming — Pt 1

Django Admin Export to Excel, CSV, and Others

Access SQS with AWS SDK for Python (Boto3) from EC2

From CRUD to CQRS. Part1. CQRS

Hot Tip Tuesday: Raindrop bookmark manager

How a high level language code runs on system?

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

2 simple steps to speed up your Docker build for Golang projects tremendously

Python vs Go: Which One Is Better For You In 2022?

Combine many series in a DataFrame in GoLang.

Types in Go