Ever wonder why sometimes the compiler yells at you for using type Html a
? Why is a
ok some times but not others?
It's not unique to Html a
. Look at the same problem using a simpler type we all understand: List a
.
Here are a few questions and thoughts to ponder:
- Compare the
myList
andmyHtml
functions. How are they similar? How are they different? - Why do you think these functions will compile or not compile?