Confusing type and value
Don't confuse values and types.
For example, the type Pair
takes one type parameter, a
, but the value P
takes two arguments of the type a
.
The danger of confusion is exacerbated by punning.
Don't confuse values and types.
For example, the type Pair
takes one type parameter, a
, but the value P
takes two arguments of the type a
.
The danger of confusion is exacerbated by punning.