Re:When to use generics
by SPBS on Wednesday April 13, 2022 @12:16AM
(#31011158)
Implicitly it means is not to model a program purely through types and how they interact with each other. In general you do start programming by defining domain types (through a combination of structs, slices and maps), but it is up to the programmer to wire up the behaviors between them and not by expressing behaviors through the type system (ML-style functional programming) or by defining type hierarchies to model the real world (Java-style OOP).
[ Parent
| on HN ]
There are no comments on this comment yet.