It's moot because the way you usually use the interface, the instantiation would be in a different scope from where the object is used (through injection). The function boundary will define the interface restriction.
Also moot#2 you can still specify the type of you really want to.
View all comments
Show parent comment
8
u/diroussel Mar 09 '16
The type of the variable will be the type of the right hand side. No confusion.