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.
I discovered while writing http://scala.zone that it's very convenient (but not so precise) to talk about "the type `List`" or say "`map` is defined on `List`", and for the meaning to be clear and unambiguous. I started out trying to be precise everywhere, but backtracked.
-
-
So I do use `type` quite loosely in a few places, but it really is a delicate balance between precision and general readability...
-
I'd support the use of type, they'll see the fully parametric type in a type position, I think it helps with the beginner intuition.
End of conversation
New conversation -
-
-
I see, yes sometimes less precision makes things easier. Of course one could overload "type" to mean both * -> * as well as * and disambiguate where necessary.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.