TIL Option[_] isn't a higher-kinded type. It's just a type constructor. Higher-kinded types are types that abstract over type constructors (so X[F[_]]). As known as 1st order & higher-order abstraction. But best refer to the latter as "type constructor polymorphism".
-
-
Replying to @dwijnand
There isn't any consistency with what people mean when they say "HKT" these days. By most usages, type constructors *are* HKTs. Though, the way you've written it ("Option[_]") is actually just a proper type with kind *, albeit existential. "Option" would be the TC.
3 replies 0 retweets 5 likes -
Replying to @propensive @dwijnand
you know you got the HKT when the compiler warns you about it :ppic.twitter.com/K6p85FBp9x
1 reply 0 retweets 2 likes
Ha! If the compiler (just the REPL, right?) is being clear about this, now, then I should adopt its consistency. :)
8:22 AM - 7 Nov 2019
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.