Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

There are "concepts" which are like generics but still experimental. Are there any other generic programming facilities in nim?

https://nim-lang.org/docs/manual_experimental.html#concepts



view as:

> Are there any other generic programming facilities in nim?

https://nim-lang.org/docs/manual.html#generics


What I wanted to write was something like type restricted generics, apparently I ended my comment prematurely. Without concepts (interfaces), I find it hard to call this system "good generics" but there might be something I'm missing.

Legal | privacy