News for hackers. Stuff that matters.
Re:Modern programming languages require generics by nine_k on Monday May 23, 2022 @07:53AM (#31477849)
I'd say that no matter where, but you have to add generic parameters to algorithms to make them reusable across domains.

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.

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...