| ▲ | AnimalMuppet 3 hours ago | |||||||
Fine, it's a regular type. It's still not the type I think it is. If it's an Int -> Int when I think it's an Int, that's still a problem, no matter how much Int -> Int is an "actual result". | ||||||||
| ▲ | kccqzy 2 hours ago | parent [-] | |||||||
Come on, just write
And the compiler immediately tells you that you are wrong: your type annotation does not unify with compiler’s inferred type.And if you think this is verbose, well many traditional imperative languages like C have no type deduction and you will need to provide a type for every variable anyways. | ||||||||
| ||||||||