Re:Modern programming languages require generics
by Rochus on Monday May 23, 2022 @11:05AM
(#31479925)
> likely you mean OCaml here
No, I was thinking of Ada or Oberon+. Here is a discussion: https://oberon-lang.github.io/2021/07/17/considering-generic...
Doing so at type / function level allows to introduce them gradually and with low ceremony, compared to parametrized modules (likely you mean OCaml here?). Gradual approaches seem to work best in real world, hence the prevalence of generic functions and parametrized types.