Re:Line length in programming
by acqq on Monday February 24, 2014 @06:33AM
(#7290233)
Is Java still lacking constructs like
The compiler actually knows what type is on the right of the = sign. Having to write FactoryFactoryObjectThingymybobProducer is not
good for anything.
[ Parent
| on HN ]
Usually this is not what you want to separate interfaces from implementations. For example, this:
List<T> l = new ArrayList<T>();
is preferred to this: ArrayList<T> l = new ArrayList<T>();
Of course, it would be nice for the compiler to assume the latter if no type is specified on the left side.