What English word would you use to describe a particular example of a type constructor, in the sense that `List[Int]` and `List[String]` are examples of `List`s? I'd like to avoid calling them "examples" if possible.
-
Show this thread
-
This question arose because we can talk about `List`'s type parameter being "instantiated" (that is, decided during typechecking) to `Int` or `String`, but saying `List[Int]` is an instance of a type is problematic because it implies the creation of a new heap object.
1 reply 0 retweets 0 likesShow this thread -
So while "List[Int] is an instance of a List" is correct in a certain context, I don't want to confuse my readers by assuming they have precisely that context and not a slightly different one. Any ideas?
19 replies 0 retweets 0 likesShow this thread -
Replying to @propensive
But List[Int] is an instance of a List[T], just like how Monad[List] is an instance of Monad[F[_]]
1 reply 0 retweets 0 likes -
Replying to @alexelcu
I'm actually not sure...! Because it depends on how you interpret "instance"... (and also, I could read `Monad[List]` as a term or type expression, with different meanings)!
2 replies 0 retweets 0 likes
If I go with "variant" (rather than instance) for the thing I'm trying to describe, would you prefer me to say, "List[Int] is a variant of List[T]", or "List[Int] is a variant of List"?
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.