3 ms·
Maybe it's because I don't know Java, but the complete separation of interface for "ImmutableBagFactory" and an implementation "ImmutableBagFactoryImpl", and th
by MichaelGG 12y ago
Maybe it's because I don't know Java, but the complete separation of interface for "ImmutableBagFactory" and an implementation "ImmutableBagFactoryImpl", and the fact you need a factory for an "ImmutableBag" in the first place... seems like very poor design. Even if it is common in Java (?).
- lmm 12y agoGiven that constructors can't conform to interfaces, if you want to be able to pass a constructor around you pretty much have to do this. I agree it's probably overkill, but if you wanted really strong compatibility guarantees I can see how this would make sense.