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
OK, s/Option[_]/Option/ then. But the problem I had with using "Option" is it's also what the companion object (term) is...
1 reply 0 retweets 0 likes -
Replying to @dwijnand
Yep, Scala cheats away this ambiguity with context-aware syntax. I'm not sure how best to express the intent of Option *as a type* in prose.
1 reply 0 retweets 1 like -
-
-
Replying to @dwijnand @tabdulradi
Scala 4. Write a SIP.
4:24 PM - 7 Nov 2019
0 replies
0 retweets
2 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.
