3 ms·
That's there if you want it though. val customer = new Cat(): Animal I can see arguments against inter-method type inference, but I think there's no real
by lmm 11y ago
That's there if you want it though.
val customer = new Cat(): Animal
I can see arguments against inter-method type inference, but I think there's no real argument against type inference within a single method (requiring explicit types on method boundaries). If you have a billion-line method you have bigger problems.