Re:Ladies, look at your code. Now back to mine.
by henrikschroder on Sunday August 29, 2010 @03:59PM
(#1644397)
With the var keyword the variable will be the exact same type as what you initialize it to, not an interface.
...is programming towards an interface, whereas
...isn't, because the type of list will be ArrayList. I think his point was that with the new Java stuff you could instead do
...which would then be explicitly programming towards an interface, while still not having to type so bleeding much.
[ Parent
| on HN ]
Re:Ladies, look at your code. Now back to mine.
by StrawberryFrog on Sunday September 05, 2010 @06:19AM
(#1664304)
Programming to an interface just doesn't seem so useful within the scope of a method.