Post #2282678
2026-05-09 12:38 UTC
The OOP goons eventually won and Go added generics a few years back.
Replies (4)
-
@gnutrino@programming.dev 2026-05-09 15:18
Generics aren’t really OOP, OOP tends to use run time dynamic dispatch through inheritance. Generics come from functional programming type constructors.
-
@Corbin@programming.dev 2026-05-09 14:44
You're thinking of [architecture astronauts](https://en.wikipedia.org/wiki/Architecture_astronaut) when talking about generics. The biggest win of the object-oriented folks was to get a [garbage collector](https://en.wikipedia.org/wiki/Garbage_collection_(computer_science)) included by default; compare and contrast with Rust, which ended up not having garbage collection.
-
@ripcord@lemmy.world 2026-05-09 14:42
Huh. https://go.dev/doc/tutorial/generics
-
@firelizzard@programming.dev 2026-05-10 02:45
You make that sound like a bad thing