Generics aren’t really OOP, OOP tends to use run time dynamic dispatch through inheritance. Generics come from functional programming type constructors.
You’re thinking of architecture astronauts when talking about generics. The biggest win of the object-oriented folks was to get a garbage collector included by default; compare and contrast with Rust, which ended up not having garbage collection.
The OOP goons eventually won and Go added generics a few years back.
Generics aren’t really OOP, OOP tends to use run time dynamic dispatch through inheritance. Generics come from functional programming type constructors.
You’re thinking of architecture astronauts when talking about generics. The biggest win of the object-oriented folks was to get a garbage collector included by default; compare and contrast with Rust, which ended up not having garbage collection.
Huh.
https://go.dev/doc/tutorial/generics