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
-
Replying to @propensive
`List[Int]` and `List[String]` are elements of `List`?
1 reply 0 retweets 0 likes -
Replying to @MateuszKubuszok
I'd go a hard "no" on that, just because "element" is so widely used to refer to the arbitrary number of items in a collection...
1 reply 0 retweets 0 likes -
Replying to @propensive
Which for me each of these is: an element of a set of all possible lists. After all type constructor is just a function from one set/type into another.
1 reply 0 retweets 1 like
Replying to @MateuszKubuszok
Yes, true, but it's not a function over *values* and if I can nail a word like "function" to "function over values" it makes a lot of things easier elsewhere...
10:00 AM - 26 Jan 2021
from Krakow, Poland
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.