Are there any plans to support either Higher Kinds...
# announcements
r
Are there any plans to support either Higher Kinds, implicits or some kind of typeclass support in Kotlin?
🙃 1
🙂 1
d
AFAIK no, no plans for those features is planned
r
😞
a
@dh44t @raulraja they plan to implement something similar https://discuss.kotlinlang.org/t/extension-types-for-kotlin/1390/26
d
Indeed, read it when it was fresh. Dunno how long will it take. I reckon that there are other concerns now
r
that wouldn't solve the issue to obtain values from types that are generic and parameterized right?
For example if you wanted to get
Monoid<F>
where F is sometimes String or Int. There is currently no way in Kotlin to write any kind of polymorphic code without emulating HigherKinds like derive4j
Monoid perhaps is not a good example but
Monad<F>
where F is something like
List
We can't refer to Higher Kinds without emulating them and there is no way for me to generically get an instance of a Monad<F> without explicitly passing it around. This makes typed FP in Kotlin not very practical at the moment.
Also @dh44t I looked at funKTionale, great stuff 👏
d
Thank you, WIP still, may things to refine and document