539
??? (lemm.ee)
submitted 9 months ago* (last edited 6 months ago) by YIj54yALOJxEsY20eU@lemm.ee to c/programmer_humor@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] frezik@midwest.social 5 points 9 months 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 9 months 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 9 months 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
539 points (96.7% liked)

Programmer Humor

19572 readers
748 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 1 year ago
MODERATORS