> If your code looks like this: f(g(x, y), a(b(c))) then inference isn't really doing much to hurt you.
Err... do you mean to say type inference isn't doing much to help you?
Err... do you mean to say type inference isn't doing much to help you?
var gxy = g(x, y)
var abc = a(b(c))
f(gxy, abc)var a = f(x) var b = g(y, a)
Isn't any different from:
g(y, f(x))
A lot of real world code I encounter doesn't bother with temporary values for everything and giving them explicit types, which is essentially the equivalent of just using inference here. Thus in this case inference isn't doing anything negative because the code would look like that regardless.