536
you are viewing a single comment's thread
view the rest of the comments
[-] frezik@midwest.social 5 points 2 years ago

I ran across an old Stackoverflow question from many years ago where someone asked a question about types and wondered if generics could solve it. There was a very high-minded, lengthy reply that Go does not have generics, because that makes the language small and clean.

Since then, Go has implemented generics. Because who the hell wants a strongly typed language without generics on this side of 2010?

[-] xmunk@sh.itjust.works 4 points 2 years ago

I honestly only think generics made it into Go because the designers started getting embarrassed by the solution to nearly every problem being "create an empty interface".

[-] dejected_warp_core@lemmy.world 3 points 2 years ago

on this side of 2010?

On this side of 1990. I'm not saying C++ did this right, but it embraced the idea that maybe the compiler could do a little more for us. And every time someone fielded a new language with some traction, eventually they added generics or just used duck-typing from the start.

this post was submitted on 14 Feb 2024
536 points (96.5% liked)

Programmer Humor

33145 readers
1100 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS