|
|
|
|
|
by gsuuon
944 days ago
|
|
I think a general 'explicit > implicit' priority is good enough to cover most cases - a written signature takes precedence over an inferred one. The compiler can also simply emit errors at both sites and let the writer figure it out. I usually think of writing explicit type annotations as 'pinning' the type in situations where things are inferred/generic by default. |
|