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
Not sure. Concrete types, as opposed to generic types. They are concrete. Just like Int is, and just like List[A] is not, it is a pattern to make concrete types, the type constructor pattern. Maybe.
1 reply 0 retweets 1 like -
Replying to @BinaryJunkie @propensive
if you go that route you could also say something like; the concrete realisation of the generic type constructor, where realisation is a verb (and better than made up ones). I wouldn't be confused by that, then again I wouldn't be confused by instance or example either.
1 reply 0 retweets 1 like -
Replying to @BinaryJunkie
I like the word "realisation": it's not overloaded, and already has meaning in natural language. I'm a little hesitant to use it in a way which suggests it is used universally for this precise meaning, and I'm thinking that "variant" may be the way to go...
2 replies 0 retweets 1 like
...but I don't think it would be inappropriate to use "realisation" without giving it an explicit technical definition in contexts where the meaning is clear: not using the same technical term over and over again can help readability generally.
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.