|
|
|
|
|
by pcwalton
3886 days ago
|
|
No, it's not relevant. When people say they want HKT, what they mean is that they want to create typeclasses that abstract over types of a higher kind and only those types, with a type system that can make those guarantees. Saying C++ has HKT because it doesn't have typeclasses is like saying Python has all of Haskell's type system features because it doesn't have static types. There's a sort of vacuous sense in which it's true, but it's not a particularly meaningful or interesting thing to say. |
|
> Saying C++ has HKT because it doesn't have typeclasses
I didn't say anything like that at all. C++ has HKT, and it doesn't have type classes.