Has anyone considered adding some sort of higher kinded type (HKT) capability to Carbon? #5724
Replies: 2 comments 1 reply
-
I'm not aware of any discussions of it, although of course there could have been some that I wasn't there for. Are there problems that will come up in Carbon that you think HKTs would solve? |
Beta Was this translation helpful? Give feedback.
-
I'm not thinking of problems "in" Carbon itself. Just that HKTs increase the range of ideas that are succinctly expressible in the language itself. Particularly for building generic libraries. On the other hand, HKTs have a reputation for being arcane, but that might not be an issue if it is mainly used by library builders. My point is that if consideration is not given to the syntax early on, it might be awkward to adopt later on. So perhaps it would be best to consider them now, and explicitly decide if they should be part of the language or not. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I suspect HKT would be easier to design in conjunction with generics, rather than trying to make it work after generics are stabilised. Just wondering if HKT has been considered or possibly ruled out?
https://serokell.io/blog/kinds-and-hkts-in-haskell
Beta Was this translation helpful? Give feedback.
All reactions