|
|
|
|
|
by yummyfajitas
4485 days ago
|
|
The biggest hit caused by type inference is not the inference itself, but the downstream recompiling needed. I.e.: - def foo(x: X) = new G2
+ def foo(x: X) = new G3
Now all users of `foo` need to be recompiled even if all the downstream classes only want a G (for some G an ancestor of G2 and G3). |
|
Definitely type inference also leads to volatile member signatures, but if the compiler could reach the 1 million lines/second level, then it wouldn't be such a big deal.