Tangentially related questions to generics, anyone think java will ever get higher kinded types? It would be super useful to have a better way of expressing higher level abstractions.
https://github.com/Kotlin/KEEP/pull/87
If if that does not succeed, the Arrow folks are working on a meta compiler (think template Haskell but with IDE support) that should get you HKTs and union types.
https://github.com/arrow-kt/arrow-meta
Regardless, something quite close to HKTs is available today via type level defunctionalisation. Just look at the Arrow docs
I would much rather some native syntax like K<T> where K is some generic though.